Bite 91. Matching multiple strings
|
|
Catching up after #PyCon2018 ... in this Bite you do …
all
any
string matching
|
|
Bite 113. Filter words with non-ascii characters
|
|
In this Bite you extract words from a text that …
all
ascii
ord
unicode
|
|
Bite 192. Some logging practice
|
|
You are to flesh out the log_it() function so that …
callable
logging
|
|
Bite 2. Regex Fun
|
|
Learn some Python regular expressions by completing the following three …
findall
freebie
re
regular expressions
|
|
Bite 28. Converting date strings to datetimes
|
|
In this Bite you are provided with a list of …
Counter
datetime
findall
|
|
Bite 23. Find words that are > 95% similar
|
|
Given a list of tags of our blog find the …
difflib
file processing
findall
itertools
SequenceMatcher
|
|
Bite 39. Calculate the total duration of a course
|
|
In this Bite you read in a text file with …
datetime
findall
numbers
timedelta
|
|
Bite 173. Set up future notifications
|
|
Let's do another datetime processing Bite. Complete add_todo below that …
datetime
findall
f-strings
timedelta
|
|
Bite 17. Form teams from a group of friends
|
|
Write a function called friends_teams that takes a list of …
itertools
|
|
Bite 21. Query a nested data structure
|
|
Given the provided cars dictionary: Get all Jeeps Get the …
data structures
dictionary comprehensions
list comprehensions
sorting
|
|
Bite 25. No promo twice, keep state in a class
|
|
In this bite a real world scenario: PyBites has a …
classes
exception handling
properties
|
|
Bite 30. Movie data analysis
|
|
In this Bite we are going to parse a csv …
data analysis
defaultdict
freebie
mean
movie data
namedtuple
sorting
|
|
Bite 36. Having fun with *args and **kwargs
|
|
Write a function called get_profile that takes:a required name,a required …
args
function arguments
kwargs
|
|
Bite 38. Using ElementTree to parse XML
|
|
In this Bite you will use ElementTree to parse some …
movie data
xml
|
|
Bite 47. Write a new password field validator
|
|
You know these Create a new password forms? They do …
re
string module
|
|
Bite 49. Scrape Packt's html with BeautifulSoup
|
|
In this Bite you will parse Packt's free learning ebook …
beautifulsoup
namedtuple
requests
|
|
Bite 64. Fix a truncating zip function
|
|
Bert is in charge of organizing an event and got …
itertools
zip
|
|
Bite 65. Get all valid dictionary words for a draw of letters
|
|
This Bite focusses on the use of itertools. To that …
itertools
Scrabble
set
|
|
Bite 66. Calculate the running average of a sequence
|
|
Write a function that takes a sequence of items and …
enumerate
itertools
mean
|
|
Bite 68. Remove punctuation characters from a string
|
|
Complete remove_punctuation which receives an input string and strips out …
string manipulation
string module
|
|
Bite 71. Keep state in a class + make its instance callable
|
|
In this Bite you write a small class to keep …
classes
dunder methods
|
|
Bite 73. Organize a meeting between timezones (pytz)
|
|
Help PyBites community friends find a reasonable common time to …
pytz
timezones
|
|
Bite 74. What day of the week were you born on?
|
|
Complete weekday_of_birth_date which takes a date object of a birthday …
calendar
|
|
Bite 76. The singledispatch countdown challenge
|
|
We are stoked and grateful to have Martin have you …
decorators
functools
singledispatch
|
|
Bite 78. Find programmers with common languages
|
|
Similar as last Bite we do another comparison of sequences …
set
set operations
|
|
Bite 79. Parse a csv file and create a bar chart
|
|
We played a bit with the Slack API today and …
bar chart
community
csv
requests
|
|
Bite 93. Rock-paper-scissors and generator's send
|
|
Generators are cool right?! Did you know you can send …
coroutines
games
random
|
|
Bite 94. Parse PyCon talk data from YouTube
|
|
PyCon2018 was awesome! But you clearly had to choose the …
list comprehensions
max
namedtuple
|
|
Intro Bite 06. Strip out vowels and count the number of replacements
|
|
In this Bite we'd like you to loop over the …
counting
freebie
regular expressions
replace
string manipulation
Zen of Python
|
|
Bite 118. List exercise: return first occurrence indices of duplicated words
|
|
In this Bite you are presented with a list of …
counting
list comprehensions
set
|
|
Bite 122. Check if two words are anagrams
|
|
An anagram is a word or phrase formed by rearranging …
anagram
string matching
|
|
Bite 127. Return the right ordinal suffix for a number
|
|
In this Bite you complete a function that takes an …
dict
modulo
numbers
string manipulation
|
|
Bite 136. Bloodtypes
|
|
Check red blood cell compatibility between donor and recipient. For …
enum
exception handling
multi type input
|
|
Bite 137. Gourmets' Nightmare
|
|
Many gourmets struggle to find the perfect pairing of wines …
Counter
intersection
operator
sorting
|
|
Bite 140. PyBites First Pandas Bite
|
|
This is a Pandas proof-of-concept Bite. We just added the …
csv
data analysis
pandas
|
|
Bite 142. Exception Handling: Calculate the Winning Player
|
|
Complete the two functions below: calculate_score takes a list of …
exception handling
namedtuple
numbers
|
|
Bite 143. Look up a value in 3 dictionaries
|
|
In this Bite you are presented with 3 dictionaries. Complete …
collections
dict
|
|
Bite 150. Turn messy CSV into JSON
|
|
At the 1 year mark of our platform here is …
csv
json
pandas
re
string manipulation
|
|
Bite 156. Make an index of story characters
|
|
You know the index at the end of a book …
collections
defaultdict
enumerate
sorting
string matching
|
|
Bite 160. 15-way Rock Paper Scissors
|
|
In this Bite you are going to write a 15-way …
csv
dict
exception handling
games
|
|
Bite 162. Vertically align output of counters
|
|
In this Bite you are tasked with "physically" aligning the …
string formatting
|
|
Bite 174. String manipulation and metrics
|
|
This bite will get you to play around with creating …
Counter
dataclasses
list comprehensions
properties
string formatting
string manipulation
translate
|
|
Bite 179. Strip comments from Python code
|
|
In this Bite you will strip off all comments from …
comments
regular expressions
string parsing
|
|
Bite 182. Parse a bunch of quotes from HTML
|
|
Let's get some inspiration. Below you find the simplified HTML …
dict
regular expressions
string manipulation
string parsing
|
|
Bite 188. Get statistics from PyBites test code
|
|
Did you know Python has a statistics module?For this Bite …
data analysis
file processing
statistics
|
|
Bite 198. Calculate my Mac's longest uptime
|
|
Given the following output, calculate the longest uptime / time …
data wrangling
datetime
dateutil
string parsing
|
|
Bite 200. 🥳 Minecraft Enchantable Items
|
|
My kids love Minecraft and they always want me to …
beautifulsoup
web scraping
|
|
Bite 201. Call a Cisco Nexus 9k device
|
|
Cisco Nexus 9k devices is one of the first network …
networking
requests
|
|
Bite 203. Type hinting practice
|
|
It's time for some type hinting! For this bite, you …
classes
dataclasses
type hinting
|
|
Bite 205. Female speakers @ Pycon US
|
|
After our Code Challenge 62 / Alicante PyDay last week, …
beautifulsoup
counting
data wrangling
gender_guesser
|
|
Bite 208. Find the number pairs summing up N
|
|
In this Bite you complete find_number_pairs which receives a list …
itertools
looping
numbers
|
|
Bite 209. Write a Sphinx docstring
|
|
Your team uses Sphinx and wants you to comply with …
data types
docstring
sphinx
|
|
Bite 213. Code a translation fixer
|
|
Imagine you built PyBites' new translation feature. You managed to …
regular expressions
|
|
Newbie Bite 20. While loop
|
|
The next challenge is to learn all about the while …
newbie
while
|
|
Newbie Bite 25. Calling a function
|
|
The last Bite! Let's actually use what we've created by …
functions
newbie
|
|
Bite 225. Swap case PyBites characters
|
|
In this Bite you will swap case all pybites characters …
looping
string manipulation
string parsing
|
|
Bite 229. Scrape best programming books
|
|
For this bite, you are going to scrape the books …
beautifulsoup
books
classes
data cleaning
data wrangling
sorting
web scraping
|
|
Bite 242. Zodiacal data parsing
|
|
In this Bite we will write tests for a module …
datetime
fixtures
pytest
|
|
Bite 248. Test a number guessing game
|
|
In this Bite you test a simple number guessing game …
classes
exception handling
games
mock.patch
pytest
|
|
Bite 250. PyBites URL Shortener
|
|
URL shortening is a technique on the World Wide Web …
decode
dict
encode
string manipulation
string module
type hinting
|
|
Bite 251. Introducing Pandas Series
|
|
Let's get started with Pandas! In case you are not …
pandas
series
string module
|
|
Bite 252. Let's play with Pandas Series
|
|
In Bite 251 we looked at creating some simple pandas …
numpy
pandas
series
slicing
type hinting
|
|
Bite 253. More Pandas Series Practice
|
|
In Bite 251 and Bite 252 we looked at creating …
math
pandas
series
statistics
|
|
Bite 255. Codon Usage
|
|
The genetic code of all organisms uses a 3 base …
bioinformatics
collections
textwrap
|
|
Bite 256. Scrape PyCon events
|
|
In this Bite, we want you to scrape PyCon 2019 …
beautifulsoup
data analysis
json
namedtuple
pycon
requests
web scraping
|
|
Bite 261. Visit all PyCons in Europe
|
|
In Bite 256 you scraped data on 2019 PyCons. Now …
data analysis
dataclasses
itertools
math
|
|
Bite 262. GC content
|
|
The DNA of all organsims consists of the letters (bases) …
bioinformatics
collections
|
|
Bite 263. Count the number of islands in a grid
|
|
You are tasked with counting the amount of islands in …
algorithms
looping
string
|
|
Bite 265. Optimal fund raising
|
|
Here is another classic algorithm problem wrapped in a Bite. …
algorithms
looping
math
|
|
Bite 266. Composition, Inheritance, Abstract Base Class, what?
|
|
It’s not as bad as that sounds, really. If you …
ABCs
abstractmethod
beautifulsoup
composition
dataclasses
inheritance
namedtuple
string formatting
typing
urllib
web scraping
|
|
Bite 269. Taxable Income Calculator
|
|
I have no idea what rabbit hole I followed to …
classes
dataclasses
finance
namedtuple
properties
typing
|
|
Bite 270. Most frequent digit in number
|
|
Given an integer number, find the most frequent digit in …
Counter
counting
numbers
|
|
Bite 271. Get all class names from a module
|
|
In this Bite you will write a function to get …
inspect
list comprehensions
|
|
Bite 280. Regular Expression Lookahead/Lookbehind
|
|
For this bite you are going to solve three different …
lookahead
lookbehind
regular expressions
|
|
Bite 288. Smallest number
|
|
Write a function that accepts a list of digits and …
numbers
|
|
Bite 290. Class Rosters Data Conversion
|
|
You have been given a comma-delimited .csv file containing class …
csv
string parsing
tuple unpacking
|
|
Bite 292. Scoring matrices
|
|
Proteins fulfill important functions in all organisms and consist of …
bioinformatics
enumerate
looping
numbers
zip
|
|
Bite 297. Rename keys
|
|
The Data Processing Department was writing a script to import …
data cleaning
dict
iteration
|
|
Bite 300. 🥳 PTO Calculator
|
|
We've all been affected by COVID-19 in one way or …
calendar
datetime
exception handling
looping
numbers
string formatting
|
|
Bite 301. Exchange rates
|
|
In this Bite you have to provide the currency exchange …
datetime
dict
sorting
|
|
Bite 302. Get and write all code from a JSON file
|
|
You are given a sample JSON file containing, among other …
filecmp
file processing
json
string manipulation
|
|
Bite 307. SQLite3 introduction
|
|
In this Bite, you are going to get some practice …
databases
SQL
sqlite3
|
|
Bite 310. Create file pairs
|
|
In this bite you will write a function that pairs …
bioinformatics
files
regular expressions
|
|
Bite 311. Cleaning text with pandas
|
|
We recently published a blog post about how to approach …
data cleaning
pandas
TF-IDF
|
|
Bite 312. Scoring objects
|
|
In this Bite you are going to score objects: Object …
builtins
importlib
keyword
typing
|
|
Bite 315. More logging practice
|
|
In this Bite you will hone your logging skills by …
exception handling
logging
|
|
Bite 316. To rent or to stream movies?
|
|
You're on a movie budget so you want to evaluate …
collections
datetime
dict
typing
|
|
Bite 346. Getting started with the IRIS data set
|
|
You are getting started with machine learning (ML)! Are you …
data wrangling
machine learning
numpy
pandas
scikit-learn
|
|
Bite 325. Floating point arithmetic
|
|
This Bite introduces you to a few issues associated with …
arithmetic
floats
numbers
rounding
|
|
Bite 327. AST visitor
|
|
In Bite 312 we learned how to identify builtin functions, …
AST
|
|
Bite 328. Longest coding streak
|
|
What is your longest streak of completed Bites? In Bite …
fromordinal
itertools
timezones
toordinal
|
|
Bite 330. Simple Math Equation Solver
|
|
Your task is to write a simple math equation solver. …
exception handling
itertools
list operations
math
operator
|
|
Bite 331. Convolution in Neural Networks
|
|
Finally a Bite about deep learning! At least, about one …
deep learning
|
|
Bite 332. Searching for an apartment
|
|
Bill is looking for a new apartment with good view, …
algorithms
|
|
Bite 337. A little detour: Pydantic
|
|
Pydantic is an awesome library to do data validation and …
FastAPI
freebie
Pydantic
|
|
Bite 339. Retrieve food objects
|
|
Now that our API can add food objects, let's retrieve …
FastAPI
freebie
|
|
Bite 342. Food logging CRUD
|
|
In this Bite you will use the Pydantic FoodEntry model …
FastAPI
freebie
|
|
Bite 343. FastAPI Exception handling
|
|
In this Bite we'll take the API we built in …
FastAPI
freebie
|
|
Bite 345. FastAPI Authentication with JWT (JSON Web Tokens)
|
|
Up to this point anyone can modify food entries in …
FastAPI
freebie
|
|
Bite 348. Citation indexes
|
|
Academic research innovates by publishing papers, i.e., documents collecting ideas …
builtins
exception handling
typing
|
|
Bite 349. Writing better Spanish
|
|
Bob is a lazy typer and often forgets to accentuate …
ascii
dict
unicode
unicodedata
|
|