Bite 203. Type hinting practice
|
|
It's time for some type hinting! For this bite, you …
3.10
classes
dataclasses
type hinting
|
|
Bite 22. Write a decorator with argument
|
|
Write a decorator called make_html that wraps text inside one …
3.10
decorators
|
|
Bite 32. Don't let mutability fool you
|
|
In this Bite you are presented with a function that …
3.10
deepcopy
mutability
|
|
Bite 95. Subclass the dict built-in
|
|
In this Bite you will subclass the dict built-in to …
3.10
classes
inheritance
|
|
Bite 357. Implement your First Subcommands and Command Groups
|
|
In the previous Bite, you learned how to create an …
3.10
command line
Typer
|
|
Bite 207. Cached property decorator
|
|
Given the sample class Planet, computing the mass attribute of …
3.10
caching
classes
decorators
properties
|
|
Bite 362. Add a Password Prompt to Your Command Line Interface (CLI)
|
|
Let's get serious. Your Command Line Interface (CLI) works and …
3.10
command line
Typer
|
|
Bite 23. Find words that are > 95% similar
|
|
Given a list of tags of our blog find the …
3.10
difflib
file processing
findall
itertools
SequenceMatcher
|
|
Bite 367. Add Pi Day to the calendar
|
|
Python has a brilliant but often overlooked module called calendar. …
3.10
calendar
tuple unpacking
|
|
Bite 208. Find the number pairs summing up N
|
|
In this Bite you complete find_number_pairs which receives a list …
3.10
itertools
looping
numbers
|
|
Bite 53. Convert text into multiple columns
|
|
You run a news site and you got feedback that …
3.10
string manipulation
|
|
Bite 61. Create a variable size Paw Patrol card deck with random actions
|
|
The Paw Patrol card deck consists of 32 cards ranging …
3.10
itertools
namedtuple
random
string module
|
|
Bite 68. Remove punctuation characters from a string
|
|
Complete remove_punctuation which receives an input string and strips out …
3.10
string manipulation
string module
|
|
Bite 209. Write a Sphinx docstring
|
|
Your team uses Sphinx and wants you to comply with …
3.10
data types
docstring
sphinx
|
|
Bite 73. Organize a meeting between timezones (pytz)
|
|
Help PyBites community friends find a reasonable common time to …
3.10
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 …
3.10
calendar
|
|
Bite 76. The singledispatch countdown challenge
|
|
We are stoked and grateful to have Martin have you …
3.10
decorators
functools
singledispatch
|
|
Bite 364. Create Wikipedia Lorem Ipsum text
|
|
Lorem Ipsum is text used to demonstrate layout in documents …
3.10
beautifulsoup
list comprehensions
random
regular expressions
requests
|
|
Bite 224. Get sentences from a text
|
|
Here is another fun regex exercise for you: it's easy …
3.10
data wrangling
regular expressions
string manipulation
|
|
Bite 28. Converting date strings to datetimes
|
|
In this Bite you are provided with a list of …
3.10
Counter
datetime
findall
|
|
Bite 91. Matching multiple strings
|
|
Catching up after #PyCon2018 ... in this Bite you do …
3.10
all
any
string matching
|
|
Bite 368. Hello Types
|
|
Welcome to this type hinting learning path. In the Bites …
3.10
annotations
type hinting
|
|
Bite 211. Write a retry decorator
|
|
Write a retry decorator that retries executing the function it …
3.10
decorators
exception handling
|
|
Bite 222. Split an iterable in groups of size n
|
|
In this Bite you will complete the group function that …
3.10
generators
iterators
itertools
looping
|
|
Bite 92. Humanize a datetime
|
|
In this Bite you will convert a timedelta object into …
3.10
datetime
namedtuple
|
|
Bite 38. Using ElementTree to parse XML
|
|
In this Bite you will use ElementTree to parse some …
3.10
movie data
xml
|
|
Bite 77. New places to travel to
|
|
You want to find people who have as much exposure …
3.10
set
set operations
|
|
Bite 82. Define a Score Enum and customize it adding methods
|
|
Starting Python 3.4 there is support for enumerations (not to …
3.10
classmethod
enum
__str__
|
|
Bite 86. Create a RGB-to-Hex converter
|
|
Designer Mary wants to convert her CSS from statements like …
3.10
string formatting
|
|
Bite 182. Parse a bunch of quotes from HTML
|
|
Let's get some inspiration. Below you find the simplified HTML …
3.10
dict
regular expressions
string manipulation
string parsing
|
|
Bite 210. Add Type Annotations
|
|
Continuing from where we left off in Bite 209, use …
3.10
annotations
type hinting
typing
|
|
Bite 215. Validate a license key
|
|
Complete the validate_license function writing a regular expression that matches …
3.10
bool
regular expressions
|
|
Bite 64. Fix a truncating zip function
|
|
Bert is in charge of organizing an event and got …
3.10
itertools
zip
|
|
Bite 96. Build Unix' wc program in Python
|
|
In this Bite you will convert Unix' wc command into …
3.10
file processing
tempfile
Unix
|
|
Newbie Bite 24. Tuples
|
|
One data type we've yet to cover is the tuple. …
3.10
newbie
tuples
|
|
Bite 225. Swap case PyBites characters
|
|
In this Bite you will swap case all pybites characters …
3.10
looping
string manipulation
string parsing
|
|
Bite 230. Thumbs up for operator overloading
|
|
In this Bite we learn a bit of operator overloading. …
3.10
classes
dunder methods
emojis
exception handling
operator overloading
|
|
Bite 187. Actor/actress age at movie release
|
|
Ever wondered how old an actor/actress was in a particular …
3.10
dataclasses
dateutil
f-strings
|
|
Bite 37. Rewrite a for loop using recursion
|
|
Although you have to be careful using recursion it is …
3.10
recursion
reverse
|
|
Bite 112. Social Media Username Validator
|
|
In this Bite you parse social_platforms below into a dict …
3.10
namedtuple
range
re
regular expressions
string manipulation
string matching
typing
|
|
Bite 115. Count leading spaces
|
|
A small but interesting Bite: given a string with leading …
3.10
counting
string matching
|
|
Bite 231. Where are the emojis?
|
|
In this Bite you are given a list of strings …
3.10
emojis
list
list comprehensions
looping
regular expressions
|
|
Bite 119. Xmas tree generator
|
|
In this Bite you complete generate_xmas_tree that takes a rows …
3.10
default args
join
range
string formatting
|
|
Bite 127. Return the right ordinal suffix for a number
|
|
In this Bite you complete a function that takes an …
3.10
dict
modulo
numbers
string manipulation
|
|
Bite 131. Screen scraper
|
|
This is the output from using screenFetch on my junky …
3.10
dict
index
regular expressions
slicing
string manipulation
|
|
Bite 132. Find the word with the most vowels
|
|
Finish the get_word_max_vowels function below that takes a text string …
3.10
counting
lambda
list comprehensions
string matching
|
|
Bite 142. Exception Handling: Calculate the Winning Player
|
|
Complete the two functions below: calculate_score takes a list of …
3.10
exception handling
namedtuple
numbers
|
|
Bite 117. Round a number even (a.k.a. banker's rounding)
|
|
Bankers Rounding is an algorithm for rounding quantities to integers, …
3.10
Decimal
rounding
|
|
Bite 135. Sort a list of book objects
|
|
In this Bite you are going to look at a …
3.10
attrgetter
datetime
lambda
list
namedtuple
operator
sorting
|
|
Bite 199. Multiple inheritance (__mro__)
|
|
Implement the following class structure: print(Child.__mro__): (<class '__main__.Child'>, <class '__main__.Father'>, …
3.10
classes
inheritance
__mro__
multiple inheritance
|
|
Bite 259. Reverse complement
|
|
In the majority of organisms, the genetic code is encoded …
3.10
bioinformatics
string manipulation
translate
|
|
Bite 134. Two Sums
|
|
Given a random list of numbers, your task is to …
3.10
index
looping
sorting
sum
|
|
Bite 139. Calculate a coding streak in days
|
|
In this Bite you are going to calculate the amount …
3.10
datetime
string manipulation
timedelta
|
|
Bite 189. Filter a list of names
|
|
Here is a Bite to practice the continue and break …
3.10
break
continue
generators
looping
|
|
Bite 234. Capitalize sentences
|
|
In this Bite you are going to capitalize sentences in …
3.10
regular expressions
string manipulation
string matching
string parsing
|
|
Bite 51. When does Python 2 die on Planet Miller?
|
|
Imagine you landed on Planet Miller (from the movie Interstellar) …
3.10
datetime
|
|
Bite 148. Print Car Data Grouped by Manufacturer
|
|
In this Bite you are presented with a list of …
3.10
data structures
itertools
operator
sorting
|
|
Bite 266. Composition, Inheritance, Abstract Base Class, what?
|
|
It’s not as bad as that sounds, really. If you …
3.10
ABCs
abstractmethod
beautifulsoup
composition
dataclasses
inheritance
namedtuple
string formatting
typing
urllib
web scraping
|
|
Bite 267. Measure the size of an island
|
|
In this algorithm Bite, the challenge is to measure the …
3.10
algorithms
looping
math
|
|
Bite 144. Calculate the Number of Months Passed
|
|
Some more fun working with dates! In this Bite you …
3.10
datetime
dateutil
exception handling
|
|
Bite 146. Rhombus generator
|
|
In this Bite you make a generator of rhombus shapes. …
3.10
format
f-strings
string formatting
|
|
Bite 268. Number Transformers
|
|
Inspired by the movie Transformer, John decides to design a …
3.10
algorithms
numbers
|
|
Bite 147. 100 WEEKDays of Code Date Range
|
|
Doing a #100DaysOfCode can be challenging, and some of it …
3.10
datetime
dateutil
|
|
Bite 165. Parse an /etc/passwd file output
|
|
The /etc/passwd file is a text-based database of information about …
3.10
split
string manipulation
tuple unpacking
|
|
Bite 201. Call a Cisco Nexus 9k device
|
|
Cisco Nexus 9k devices is one of the first network …
3.10
networking
requests
|
|
Bite 271. Get all class names from a module
|
|
In this Bite you will write a function to get …
3.10
inspect
list comprehensions
|
|
Bite 151. Contemporary Composers
|
|
You are given a list of operas and a list …
3.10
datetime
dict
exception handling
generators
namedtuple
|
|
Bite 154. Write your own Data Class
|
|
As you might have noticed we are now on Python …
3.10
dataclasses
data structures
hashable
sorting
type hinting
|
|
Newbie Bite 14. Functions
|
|
Here we go, the big one. Functions! This is where …
3.10
functions
newbie
|
|
Bite 272. Find common words
|
|
Given two sentences that each contains words in case insensitive …
3.10
algorithms
set operations
string matching
|
|
Newbie Bite 16. Equals Operator
|
|
In this quick bite we'll teach out about the equals …
3.10
equality
newbie
|
|
Bite 155. Split a string by spaces or quoted text
|
|
Another text manipulation Bite. Code split_words_and_quoted_text that takes a text …
3.10
split
string manipulation
|
|
Bite 181. Keep a list sorted upon insert
|
|
Complete the add method of the OrderedList class which takes …
3.10
bisect
classes
data structures
__str__
|
|
Bite 11. Enrich a class with dunder methods
|
|
Let's enrich an Account class by adding dunder (aka special) …
3.10
dunder methods
functools
properties
|
|
Bite 276. Get Father's days by date and country
|
|
Happy belated Father's day (unless you are in Australia or …
3.10
dateutil
string manipulation
string parsing
|
|
Bite 253. More Pandas Series Practice
|
|
In Bite 251 and Bite 252 we looked at creating …
3.10
math
pandas
series
statistics
|
|
Bite 157. Filter out accented characters
|
|
Another unicode Bite. Given some non-English text with accents (á, …
3.10
string matching
unicode
|
|
Bite 169. Simple length converter
|
|
Your task is to complete the convert() function. It's purpose …
3.10
exception handling
numbers
rounding
|
|
Bite 212. Suppressing exceptions
|
|
Ever wanted to suppress an exception? Check out Python's contextlib …
3.10
context managers
exception handling
|
|
Bite 160. 15-way Rock Paper Scissors
|
|
In this Bite you are going to write a 15-way …
3.10
csv
dict
exception handling
games
|
|
Bite 219. Bite notification planner
|
|
Another real world use case. When we added notifications to …
3.10
datetime
generators
|
|
Bite 164. CLI tool: HTML link converter (stdin to stdout)
|
|
In this Bite you are going to help your team …
3.10
data wrangling
exception handling
html
stdin
string formatting
string manipulation
sys
|
|
Bite 47. Write a new password field validator
|
|
You know these Create a new password forms? They do …
3.10
re
string module
|
|
Bite 206. Calculate and evenly split the bill
|
|
Three old friends Bob, Mary, and Alice meet at PyCon …
3.10
Decimal
numbers
rounding
|
|
Bite 270. Most frequent digit in number
|
|
Given an integer number, find the most frequent digit in …
3.10
Counter
counting
numbers
|
|
Bite 277. Number of coin changes
|
|
Pat is going to apply for a cashier job in …
3.10
algorithms
dynamic programming
|
|
Newbie Bite 04. Printing Objects
|
|
Excellent! We know things! Now that we have data assigned …
3.10
newbie
print
|
|
Bite 227. Convert Warcraft json data to csv
|
|
In this Bite we are going to convert some Warcraft …
3.10
csv
exception handling
json
|
|
Bite 100. Display the last part of a file (Unix tail)
|
|
Complete the function below simulating Unix' tail, for example: $ …
3.10
file processing
slicing
strip
Unix
|
|
Bite 196. Create a JS-like dict object
|
|
In this Bite we challenge you to make a dict-like …
3.10
classes
dict
inheritance
javascript
|
|
Bite 233. Make a zipfile of the latest log files
|
|
You added some monitoring the other day writing log files …
3.10
datetime
os module
pathlib
zipfile
|
|
Bite 280. Regular Expression Lookahead/Lookbehind
|
|
For this bite you are going to solve three different …
3.10
lookahead
lookbehind
regular expressions
|
|
Bite 179. Strip comments from Python code
|
|
In this Bite you will strip off all comments from …
3.10
comments
regular expressions
string parsing
|
|
Bite 191. Starwars character with highest BMI
|
|
In this Bite you will parse a multiline string of …
3.10
max
operator
string manipulation
tuple unpacking
|
|
Bite 197. What date is Mother's Day celebrated?
|
|
It's the 12th of May 2019 when we write this …
3.10
datetime
dateutil
|
|
Bite 214. A countdown generator
|
|
Write a simple generator that counts from 100 to 1. …
3.10
generators
|
|
Bite 283. Like there's no tomorrow?
|
|
Ever have difficulty remembering what today's date is? How about …
3.10
datetime
|
|
Bite 232. Analyze gold prices
|
|
In this Bite you will analyze how the price of …
3.10
comparison
data analysis
looping
pandas
sorting
string parsing
|
|
Bite 228. Create a Gravatar URL
|
|
In this Bite you will generate a Gravatar URL, e.g. …
3.10
gravatar
hashlib
string formatting
|
|
Newbie Bite 25. Calling a function
|
|
The last Bite! Let's actually use what we've created by …
3.10
functions
newbie
|
|
Newbie Bite 22. For loops
|
|
It's time to move on to a slightly more complex …
3.10
looping
newbie
|
|
Bite 123. Find the user with most friends
|
|
In this Bite you are presented with a users dict …
3.10
defaultdict
looping
sorting
tuples
|
|
Newbie Bite 01. Assigning Objects
|
|
Welcome to our Newbie Bites, it's time to learn the …
3.10
freebie
newbie
variables
|
|
Bite 88. Write a performance monitoring context manager
|
|
It's time for Context Managers part II. In Bite 20 …
3.10
context managers
Counter
|
|
Bite 218. Create a sandwich decorator
|
|
After creating our Decorators and Context Managers learning path we …
3.10
decorators
|
|
Bite 217. Capture stdout
|
|
Sometimes you need to capture stdout in your script. Python …
3.10
context managers
StringIO
|
|
Bite 118. List exercise: return first occurrence indices of duplicated words
|
|
In this Bite you are presented with a list of …
3.10
counting
list comprehensions
set
|
|
Bite 235. Which Bite has the fastest tests?
|
|
In this Bite you will parse a pytest output summary, …
3.10
sorting
string parsing
type casting
|
|
Newbie Bite 06. Additional Maths
|
|
Let's quickly cover off the rest of the math operators. …
3.10
math
newbie
|
|
Bite 237. Get the dates Ninja belts were earned
|
|
Another real-world scenario: in this Bite you will parse a …
3.10
datetime
json
looping
pandas
sorting
|
|
Newbie Bite 10. Returning items by list index
|
|
Lists are pretty awesome (both in Python and in real …
3.10
list
newbie
|
|
Bite 83. At what time does PyBites live?
|
|
Get to know pytz! pytz brings the Olson tz database …
3.10
pytz
timezones
|
|
Newbie Bite 21. Comments
|
|
Time to look at one of the more useful aspects …
3.10
comments
newbie
|
|
Bite 244. Make mutpy's output more digestible
|
|
Another real world scenario. When we started using MutPy for …
3.10
data wrangling
looping
mutpy
string matching
string parsing
|
|
Bite 190. Parse income distribution from Latin America XML
|
|
In this Bite you are going to parse some Latin …
3.10
data analysis
defaultdict
xml
|
|
Bite 296. Jagged list
|
|
Write a function that takes an irregular shaped list of …
3.10
iteration
itertools
list
|
|
Bite 213. Code a translation fixer
|
|
Imagine you built PyBites' new translation feature. You managed to …
3.10
regular expressions
|
|
Bite 58. Using argparse to interface with a grocery cart
|
|
Below is a Groceries class with add/delete/show/search methods. You as …
3.10
argparse
|
|
Bite 193. Most upvoted StackOverflow Python questions
|
|
In this Bite you parse a copy of StackOverflow Python …
3.10
beautifulsoup
requests
sorting
string matching
web scraping
|
|
Bite 48. Make a bar chart of new Safari books
|
|
Some time ago we made a little Slack bot to …
3.10
bar chart
data analysis
|
|
Bite 39. Calculate the total duration of a course
|
|
In this Bite you read in a text file with …
3.10
datetime
findall
numbers
timedelta
|
|
Bite 97. BeautifulSoup II - scrape US holidays
|
|
In this Bite we use BeautifulSoup to scrape US holidays …
3.10
beautifulsoup
defaultdict
dict
|
|
Bite 178. Parse PyBites blog git commit log
|
|
In this Bite we want to figure out how active …
3.10
Counter
data analysis
datetime
dateutil
string parsing
|
|
Bite 94. Parse PyCon talk data from YouTube
|
|
PyCon2018 was awesome! But you clearly had to choose the …
3.10
list comprehensions
max
namedtuple
|
|
Bite 245. Xmas Tree 2.0
|
|
In this Bite you have to complete generate_improved_xmas_tree that takes …
3.10
range
string formatting
|
|
Bite 254. Global vs local variables
|
|
This Bite is to illustrate scoping. You will sum numbers …
3.10
global
sum
|
|
Bite 260. Let's play with Pandas DataFrames
|
|
To this point in the Pandas learning path we have …
3.10
dataframes
pandas
|
|
Bite 125. Get the most recommended books
|
|
The Tim Ferriss Show is full of wisdom and inspiration. …
3.10
beautifulsoup
Counter
default args
list comprehensions
requests
|
|
Bite 250. PyBites URL Shortener
|
|
URL shortening is a technique on the World Wide Web …
3.10
decode
dict
encode
string manipulation
string module
type hinting
|
|
Bite 252. Let's play with Pandas Series
|
|
In Bite 251 we looked at creating some simple pandas …
3.10
numpy
pandas
series
slicing
type hinting
|
|
Bite 255. Codon Usage
|
|
The genetic code of all organisms uses a 3 base …
3.10
bioinformatics
collections
textwrap
|
|
Bite 257. Extract users dict from a multiline string
|
|
A quick Bite to practice some string parsing extracting a …
3.10
dict
string parsing
|
|
Bite 261. Visit all PyCons in Europe
|
|
In Bite 256 you scraped data on 2019 PyCons. Now …
3.10
data analysis
dataclasses
itertools
math
|
|
Bite 297. Rename keys
|
|
The Data Processing Department was writing a script to import …
3.10
data cleaning
dict
iteration
|
|
Bite 258. What the flux?
|
|
One of the benefits of accounting is being able to …
3.10
finance
math
pandas
|
|
Bite 177. Use Pandas to find most common genres in a movie excel sheet
|
|
Another pandas Bite: we took some fake movie data from …
3.10
data cleaning
excel
groupby
movie data
pandas
|
|
Bite 183. Analyze sales data with pandas
|
|
For this Bite we got some fake Excel sales data …
3.10
data analysis
groupby
pandas
|
|
Bite 198. Calculate my Mac's longest uptime
|
|
Given the following output, calculate the longest uptime / time …
3.10
data wrangling
datetime
dateutil
string parsing
|
|
Bite 221. Parse best selling lists using the NY Times API
|
|
In this Bite you are going to parse NY Times …
3.10
APIs
json
mock
requests
|
|
Newbie Bite 15. Functions part II
|
|
Functions can be kind of tricky to start off with …
3.10
functions
newbie
|
|
Bite 65. Get all valid dictionary words for a draw of letters
|
|
This Bite focusses on the use of itertools. To that …
3.10
itertools
Scrabble
set
|
|
Bite 342. Food logging CRUD
|
|
In this Bite you will use the Pydantic FoodEntry model …
3.10
FastAPI
freebie
|
|
Bite 236. User experience matters! Suggest matching files
|
|
We love it when CLI or web apps take the …
3.10
difflib
files
pathlib
|
|
Bite 263. Count the number of islands in a grid
|
|
You are tasked with counting the amount of islands in …
3.10
algorithms
looping
string
|
|
Bite 265. Optimal fund raising
|
|
Here is another classic algorithm problem wrapped in a Bite. …
3.10
algorithms
looping
math
|
|
Bite 194. Add caching to a Fibonacci function
|
|
In this Bite you will learn about memoization: In computing, …
3.10
cache
fibonacci
functools
performance
|
|
Bite 251. Introducing Pandas Series
|
|
Let's get started with Pandas! In case you are not …
3.10
pandas
series
string module
|
|
Bite 269. Taxable Income Calculator
|
|
I have no idea what rabbit hole I followed to …
3.10
classes
dataclasses
finance
namedtuple
properties
typing
|
|
Bite 273. Shortest path (Graph Bite)
|
|
Graph theory is popular in Math and Computer Science. A …
3.10
algorithms
computer science
graph
|
|
Bite 256. Scrape PyCon events
|
|
In this Bite, we want you to scrape PyCon 2019 …
3.10
beautifulsoup
data analysis
json
namedtuple
pycon
requests
web scraping
|
|
Bite 274. Number conversion problem
|
|
Recursion in computer science is a method of solving a …
3.10
algorithms
numbers
recursion
|
|
Bite 204. Pomodoro with asyncio
|
|
This Bite explores asyncio and type-hinting. For this bite, you …
3.10
asyncio
pomodoro
|
|
Bite 59. Create a multiplication table class of variable length
|
|
Danny does not like rote learning (nor do we!). He …
3.10
classes
dunder methods
exception handling
numbers
|
|
Bite 111. Use the ipinfo API to lookup IP country
|
|
In this Bite you will use the requests library to …
3.10
APIs
json
mock.patch
requests
|
|
Bite 205. Female speakers @ Pycon US
|
|
After our Code Challenge 62 / Alicante PyDay last week, …
3.10
beautifulsoup
counting
data wrangling
gender_guesser
|
|
Bite 275. Get the most common email domains
|
|
In this Bite you will process a list of emails …
3.10
Counter
requests
set
string parsing
web scraping
|
|
Bite 279. Armstrong numbers
|
|
In number theory there are many interesting numbers - eg. …
3.10
algorithms
numbers
|
|
Bite 278. Major and minor numbers
|
|
You are given a list of integers. Write code to …
3.10
collections
max
min
numbers
|
|
Newbie Bite 20. While loop
|
|
The next challenge is to learn all about the while …
3.10
newbie
while
|
|
Bite 282. Evaluate a Bridge hand
|
|
In this bite you will implement a BridgeHand class representing …
3.10
classes
enum
exception handling
looping
properties
sorting
|
|
Bite 85. Write a score property
|
|
After Bite 19. Write a simple property let's write a …
3.10
classes
properties
|
|
Bite 284. Pascal triangle
|
|
A Pascal triangle is a triangular array of integers constructed …
3.10
algorithms
Pascal
|
|
Bite 285. Nested List Extraction
|
|
Sometimes dealing with data can be a real struggle. Sometimes …
3.10
data structures
string parsing
|
|
Bite 287. Sum indices
|
|
Write a function that accepts a list of strings and …
3.10
looping
sum
|
|
Newbie Bite 19. Less than and greater than
|
|
We'll now take a look at usage of the "less …
3.10
comparison
newbie
|
|
Bite 291. Find the fastest speech
|
|
In this Bite you will parse an SRT (SubRip Subtitle …
3.10
datetime
sorting
string manipulation
|
|
Bite 295. Join lists
|
|
Write a function that accepts a list of lists and …
3.10
iteration
joining
list
|
|
Bite 286. Decompress
|
|
Write a function, called decompress(), that accepts a string and …
3.10
recursion
string manipulation
|
|
Bite 63. Use an infinite iterator to simulate a traffic light
|
|
Complete traffic_light using itertools.cycle to return an infinite iterator to …
3.10
iterators
itertools
namedtuple
|
|
Bite 288. Smallest number
|
|
Write a function that accepts a list of digits and …
3.10
numbers
|
|
Bite 348. Citation indexes
|
|
Academic research innovates by publishing papers, i.e., documents collecting ideas …
3.10
builtins
exception handling
typing
|
|
Bite 301. Exchange rates
|
|
In this Bite you have to provide the currency exchange …
3.10
datetime
dict
sorting
|
|
Bite 302. Get and write all code from a JSON file
|
|
You are given a sample JSON file containing, among other …
3.10
filecmp
file processing
json
string manipulation
|
|
Bite 304. Most identical letters in a word
|
|
In this Bite, you will write a function called max_letter_word() …
3.10
casefold
Counter
max
string matching
|
|
Bite 289. Round to next number
|
|
Write a function that accepts a number and a multiple, …
3.10
math
|
|
Bite 30. Movie data analysis
|
|
In this Bite we are going to parse a csv …
3.10
data analysis
defaultdict
freebie
mean
movie data
namedtuple
sorting
|
|
Bite 172. Having fun with Python Partials
|
|
Meet another gem in the standard library: functools, which contains …
3.10
functools
partial
rounding
|
|
Bite 292. Scoring matrices
|
|
Proteins fulfill important functions in all organisms and consist of …
3.10
bioinformatics
enumerate
looping
numbers
zip
|
|
Bite 153. Round a sequence of numbers
|
|
It's time to get mathematical! In this Bite we ask …
3.10
list comprehensions
math
rounding
|
|
Bite 308. Calculate the median from a dictionary
|
|
You are in charge of a program that continuously collects …
3.10
median
sorting
sum
|
|
Bite 152. Manipulate string decorator
|
|
Write a decorator called strip_range that replaces characters with dots. …
3.10
decorators
kwargs
list
string manipulation
|
|
Bite 293. N digit numbers
|
|
Write a function that accepts a list of numbers and converts …
3.10
numbers
|
|
Bite 129. Analyze Stock Data
|
|
In this Bite we will answer some questions about stocks, …
3.10
counting
data analysis
json
requests
sorting
string manipulation
|
|
Bite 310. Create file pairs
|
|
In this bite you will write a function that pairs …
3.10
bioinformatics
files
regular expressions
|
|
Bite 329. Convert dict keys to snake case
|
|
In this Bite we will take a (nested) dict and …
3.10
algorithms
recursion
string manipulation
|
|
Bite 223. Unix file permissions
|
|
Each file and directory in Unix has its permissions broken …
3.10
dict
list comprehensions
string manipulation
|
|
Bite 294. Bowling score
|
|
If you've never tried bowling, it's a fun game to …
3.10
games
looping
numbers
|
|
Bite 226. Get top titles from news.python.sc
|
|
There is a new Python news aggregator in town! Check …
3.10
beautifulsoup
namedtuple
news
requests
sorting
string parsing
web scraping
|
|
Bite 299. Base converter
|
|
For this challenge, you are going to have write a …
3.10
base
exception handling
|
|
Bite 315. More logging practice
|
|
In this Bite you will hone your logging skills by …
3.10
exception handling
logging
|
|
Bite 316. To rent or to stream movies?
|
|
You're on a movie budget so you want to evaluate …
3.10
collections
datetime
dict
typing
|
|
Bite 327. AST visitor
|
|
In Bite 312 we learned how to identify builtin functions, …
3.10
AST
|
|
Bite 317. Pickling objects
|
|
In this Bite you will load (deserialize) and dump (serialize) …
3.10
data wrangling
pickle
serialization
|
|
Bite 321. Magic bytes
|
|
Magic numbers are bytes that can be used to uniquely …
3.10
bytes
csv
exception handling
file processing
images
string parsing
|
|
Bite 318. Decode base64 encoded data
|
|
In this Bite you are going to decode some Base64 …
3.10
base64
decode
encode
|
|
Bite 229. Scrape best programming books
|
|
For this bite, you are going to scrape the books …
3.10
beautifulsoup
books
classes
data cleaning
data wrangling
sorting
web scraping
|
|
Bite 300. 🥳 PTO Calculator
|
|
We've all been affected by COVID-19 in one way or …
3.10
calendar
datetime
exception handling
looping
numbers
string formatting
|
|
Bite 323. Iterables intersection
|
|
In this bite we are going to work on coding …
3.10
functools
set operations
|
|
Bite 331. Convolution in Neural Networks
|
|
Finally a Bite about deep learning! At least, about one …
3.10
deep learning
numpy
|
|
Bite 290. Class Rosters Data Conversion
|
|
You have been given a comma-delimited .csv file containing class …
3.10
csv
string parsing
tuple unpacking
|
|
Bite 171. Make a terminal spinner animation
|
|
In this Bite you will spice up your command line …
3.10
command line
itertools
stdout
sys
time
|
|
Bite 343. FastAPI Exception handling
|
|
In this Bite we'll take the API we built in …
3.10
FastAPI
freebie
|
|
Bite 305. Split once, delimit many
|
|
Write a function that accepts a string and splits the …
3.10
looping
split
string parsing
|
|
Bite 93. Rock-paper-scissors and generator's send
|
|
Generators are cool right?! Did you know you can send …
3.10
coroutines
games
random
|
|
Bite 328. Longest coding streak
|
|
What is your longest streak of completed Bites? In Bite …
3.10
fromordinal
itertools
timezones
toordinal
|
|
Bite 307. SQLite3 introduction
|
|
In this Bite, you are going to get some practice …
3.10
databases
SQL
sqlite3
|
|
Bite 138. OOP fun at the Zoo
|
|
Finish the Animal class below adding one or more class …
3.10
classes
classmethod
itertools
__str__
|
|
Bite 168. Ninja Rankings
|
|
PyBites is starting a campaign to try and pair up …
3.10
bisect
classes
dataclasses
dunder methods
heapq
tuples
|
|
Newbie Bite 09. Lists
|
|
Next up on our Python journey we're going to dive …
3.10
list
newbie
|
|
Bite 174. String manipulation and metrics
|
|
This bite will get you to play around with creating …
3.10
Counter
dataclasses
list comprehensions
properties
string formatting
string manipulation
translate
|
|
Bite 202. Analyze some Bite stats data - part II
|
|
In this Bite you will analyze complexity levels of our …
3.10
csv
data analysis
sorting
|
|
Bite 309. A simple document class
|
|
When we want to transform our data often, method chaining …
3.10
annotations
classes
method chaining
properties
string
|
|
Newbie Bite 11. Adding and Removing items from a list
|
|
Now that we have our list, what if we decide …
3.10
list
newbie
|
|
Bite 312. Scoring objects
|
|
In this Bite you are going to score objects: Object …
3.10
builtins
importlib
keyword
typing
|
|
Bite 326. Abstract Syntax Tree (AST) Printer
|
|
In this Bite we familiarise with Abstract Syntax Trees (ASTs). …
3.10
AST
|
|
Bite 220. Analysing @pythonbytes RSS feed
|
|
Another feedparser exercise! In this Bite we're going to analyze …
3.10
classes
Counter
feedparser
max
min
namedtuple
regular expressions
string matching
type hinting
|
|
Intro Bite 04. Split and join
|
|
Split up the message on newline (\n) using the split …
3.10
freebie
join
split
|
|
Bite 350. Learn to handle cron schedule expressions
|
|
Let your mind wander and tell us what you think …
3.10
crontab
dataclasses
datetime
exception handling
iteration
|
|
Bite 167. Complete a User class: properties and representation dunder methods
|
|
In this Bite you are presented with another class, User …
3.10
classes
dunder methods
f-strings
properties
__repr__
__str__
string manipulation
|
|
Bite 319. Identity and equality
|
|
Identity and equality are two important concepts in Python. Please …
3.10
equality
integer caching
staticmethod
|
|
Bite 3. Word Values
|
|
Find the dictionary word with the highest value using Scrabble rules. …
3.10
freebie
max
Scrabble
sum
|
|
Bite 2. Regex Fun
|
|
Learn some Python regular expressions by completing the following three …
3.10
findall
freebie
re
regular expressions
|
|
Bite 4. Top 10 PyBites tags
|
|
In this Bite you will find the top ten tags …
3.10
Counter
xml
|
|
Newbie Bite 05. Basic Maths
|
|
We're able to print integers. Now what? Yep, it's time …
3.10
math
newbie
|
|
Newbie Bite 13. Dict data retrieval methods
|
|
Excellent! We know what a dict is and what it …
3.10
newbie
|
|
Bite 320. sortable dataclasses and enums
|
|
Write an enum called BiteLevel and a dataclass called Bite …
3.10
dataclasses
dunder methods
enum
sorting
|
|
Newbie Bite 07. User Input
|
|
Quite often as you make scripts and applications you're going …
3.10
input
newbie
|
|
Newbie Bite 08. String Manipulation
|
|
There are times you'll need to manipulate the strings you've …
3.10
newbie
string manipulation
|
|
Newbie Bite 12. Dicts
|
|
It's time to dive into the next data structure in …
3.10
dict
list
newbie
|
|
Newbie Bite 03. Basic Printing
|
|
Before we dive too far into these objects, let's quickly …
3.10
freebie
newbie
print
|
|
Bite 10. Practice exceptions
|
|
In this Bite you'll learn to catch and raise Python …
3.10
exception handling
raise
|
|
Bite 322. Reading progress
|
|
Happy New Year! How many books do you aim to …
3.10
datetime
numbers
|
|
Bite 355. Create Your First Typer Command Line Interface (CLI) Application
|
|
In the previous Bites, you have successfully transformed an existing …
3.10
command line
Typer
|
|
Bite 120. Write a numbers validation decorator
|
|
Let's get some more practice with decorators ... in this …
3.10
decorators
|
|
Bite 313. Alternative constructors
|
|
In this Bite your are provided with a Domain class …
3.10
classes
classmethod
|
|
Bite 12. Write a user validation function
|
|
Create a function that takes a username and checks for …
3.10
classes
exception handling
namedtuple
|
|
Newbie Bite 17. If / else
|
|
It's time to look at the amazing if statement! It's …
3.10
if/else
newbie
|
|
Bite 31. Matrix multiplication / @ operator
|
|
Since 3.5 Python has a binary operator to be used …
3.10
dunder methods
__matmul__
operator overloading
|
|
Bite 337. A little detour: Pydantic
|
|
Pydantic is an awesome library to do data validation and …
3.10
FastAPI
freebie
Pydantic
|
|
Newbie Bite 18. Truthiness
|
|
One of the things we often need to check when …
3.10
newbie
truthiness
|
|
Bite 24. ABC's and class inheritance
|
|
ABC's or Abstract Base Classes are great to enforce a …
3.10
ABCs
abstractmethod
classes
inheritance
|
|
Bite 26. Dictionary comprehensions are awesome
|
|
A dictionary comprehension is like a list comprehension, but it …
3.10
dictionary comprehensions
|
|
Bite 324. Pretty string
|
|
Write a function that returns a neatly formatted string representation …
3.10
pprint
|
|
Bite 46. You are a programmer! Code Fizz Buzz
|
|
Here is a beginner Bite to write Fizz Buzz: Fizz …
3.10
fizzbuzz
|
|
Intro Bite 01. F-strings and a simple if/else
|
|
Welcome to our Intro Bites, it's time to gauge where …
3.10
freebie
f-strings
if/else
|
|
Bite 345. FastAPI Authentication with JWT (JSON Web Tokens)
|
|
Up to this point anyone can modify food entries in …
3.10
FastAPI
freebie
|
|
Newbie Bite 02. Basic Data Types
|
|
If you really think about it, there are multiple different …
3.10
data types
freebie
newbie
|
|
Intro Bite 06. Strip out vowels and count the number of replacements
|
|
In this Bite we'd like you to loop over the …
3.10
counting
freebie
regular expressions
replace
string manipulation
Zen of Python
|
|
Intro Bite 07. Filter numbers with a list comprehension
|
|
Complete the function below that receives a list of numbers …
3.10
freebie
list comprehensions
modulo
|
|
Bite 325. Floating point arithmetic
|
|
This Bite introduces you to a few issues associated with …
3.10
arithmetic
floats
numbers
rounding
|
|
Intro Bite 09. Workout dictionary lookups
|
|
In this Bite you learn how to lookup values from …
3.10
dict
exception handling
format
freebie
string manipulation
ternary
|
|
Newbie Bite 23. Looping through a dict
|
|
While we've explained how for loops work, it's worth diving …
3.10
dict
newbie
|
|
Bite 338. Create food objects
|
|
Now with the Pydantic Food model defined we can start …
3.10
FastAPI
freebie
|
|
Bite 340. Update and delete food objects
|
|
Now that we're able to create and retrieve Food objects, …
3.10
FastAPI
freebie
|
|
Bite 330. Simple Math Equation Solver
|
|
Your task is to write a simple math equation solver. …
3.10
exception handling
itertools
list operations
math
operator
|
|
Bite 43. Force keyword arguments
|
|
Write a function called get_profile that only allows 2 keyword …
3.10
function arguments
kwargs
|
|
Bite 347. Which words can you type with one hand?
|
|
In this Bite you will write a function that takes …
3.10
comparison
enum
set
|
|
Bite 89. Playing with lists and dicts
|
|
In this Bite you are presented with a us_state_abbrev dict …
3.10
data structures
dict
list
|
|
Bite 262. GC content
|
|
The DNA of all organsims consists of the letters (bases) …
3.10
bioinformatics
collections
|
|
Bite 314. Print names to columns
|
|
In this Bite you will use the modulo operation. You …
3.10
f-strings
modulo
print
|
|
Bite 360. Add a progress bar to Your Command Line Interface (CLI)
|
|
In this Bite, you will create a simplistic CLI application …
3.10
command line
rich
Typer
|
|
Bite 332. Searching for an apartment
|
|
Bill is looking for a new apartment with good view, …
3.10
algorithms
|
|
Bite 344. Return an HTML response
|
|
You use FastAPI primarily to build APIs, but it can …
3.10
FastAPI
freebie
|
|
Bite 16. PyBites date generator
|
|
Write a generator that returns every 100th day counting forward from …
3.10
datetime
generators
|
|
Bite 216. Parse an email header
|
|
Write a regular expression to extract 4 pieces of information …
3.10
regular expressions
|
|
Bite 185. Create a simple spelling suggester
|
|
In this Bite you will write a simple spelling corrector. …
3.10
difflib
SequenceMatcher
string matching
|
|
Bite 333. Metropolis–Hastings Algorithm
|
|
In statistics and statistical physics, the Metropolis–Hastings algorithm is a …
3.10
algorithms
Markov chain Monte Carlo
numpy
statistics
|
|
Bite 334. Simple TCP client
|
|
Your job is to write a simple TCP/IP client which …
3.10
client
hashlib
multiprocessing
networking
secrets
socket
TCP/IP
|
|
Bite 353. Transform a Script Into a Command Line Interface (CLI)
|
|
There are several Python frameworks to create CLIs, check out …
3.10
command line
Typer
|
|
Bite 361. Rich Excursion - Create Beautiful Tables
|
|
This will be a quick Bite showing you how to …
3.10
command line
rich
Typer
|
|
Bite 363. Movie Theater (Refactoring)
|
|
Refactor the code from invoice_to_be_refactored inside invoice_refactored and make it …
3.10
clean code
refactoring
|
|
Bite 365. Rolling two dice for an advantage
|
|
Let's roll the dice! When playing a game where it …
3.10
itertools
math
mean
|
|
Bite 366. Goal Tracker
|
|
In this Bite, you build a function that tells you …
3.10
date
datetime
tuple unpacking
|
|
Bite 335. Async HTTP client
|
|
Your task in this Bite is to create an http …
3.10
aiohttp
asyncio
client
networking
|
|
Bite 349. Writing better Spanish
|
|
Bob is a lazy typer and often forgets to accentuate …
3.10
ascii
dict
unicode
unicodedata
|
|
Bite 351. Get spelling suggestions
|
|
Complete the get_spelling_suggestions() function that takes a word and returns …
3.10
comparison
namedtuple
TextBlob
tuple unpacking
typing
|
|
Bite 15. Enumerate 2 sequences
|
|
Iterate over the given names and countries lists, printing them …
3.10
enumerate
string formatting
|
|
Bite 336. FastAPI Hello World
|
|
Welcome to this FastAPI learning path. In the next 10 …
3.10
FastAPI
freebie
|
|
Bite 369. Advanced Type Hints
|
|
In the previous Bite you have started annotating code with …
3.10
annotations
type hinting
|
|
Bite 370. Getting started with vectors
|
|
In the previous two Bites you have annotated small pieces …
3.10
annotations
type hinting
|
|
Bite 66. Calculate the running average of a sequence
|
|
Write a function that takes a sequence of items and …
3.10
enumerate
itertools
mean
|
|
Bite 1. Sum n numbers
|
|
Write a Python function that calculates the sum of a …
3.10
default args
freebie
None
range
sum
|
|
Bite 5. Parse a list of names
|
|
In this Bite you will work with a list of …
3.10
freebie
lambda
list comprehensions
min
sorting
|
|
Bite 69. Regex Fun - part II
|
|
It's time for another Regex one! (here is part I) …
3.10
re
regular expressions
|
|
Bite 339. Retrieve food objects
|
|
Now that our API can add food objects, let's retrieve …
3.10
FastAPI
freebie
|
|
Bite 6. PyBites Die Hard
|
|
Given a listing of files for our community branch, determine: …
3.10
Counter
file processing
generators
namedtuple
|
|
Bite 7. Parsing dates from logs
|
|
In this Bite we will look at this short server …
3.10
datetime
file processing
|
|
Bite 8. Rotate string characters
|
|
Write a function that rotates characters in a string in …
3.10
deque
slicing
|
|
Bite 9. Palindromes
|
|
Write a function to determine if a word or phrase …
3.10
algorithms
list comprehensions
max
reverse
|
|
Bite 352. Hash SQL statements
|
|
In this Bite you are going to implement a simple …
3.10
hashlib
SQL
|
|
Bite 13. Convert dict to namedtuple/json
|
|
Write a function to convert the given blog dict to …
3.10
dict
json
namedtuple
|
|
Bite 14. Generate a table of n sequences
|
|
Write a function that receives one or more sequences. The …
3.10
generators
zip
|
|
Bite 17. Form teams from a group of friends
|
|
Write a function called friends_teams that takes a list of …
3.10
itertools
|
|
Bite 18. Find the most common word
|
|
Write a function that returns the most common (non stop)word …
3.10
Counter
data analysis
list comprehensions
|
|
Bite 19. Write a property
|
|
Write a simple Promo class. Its constructor receives two variables: …
3.10
datetime
properties
|
|
Bite 20. Write a context manager
|
|
Write a context manager to roll back a transaction on …
3.10
context managers
dunder methods
operator overloading
with statement
|
|
Bite 21. Query a nested data structure
|
|
Given the provided cars dictionary: Get all Jeeps Get the …
3.10
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 …
3.10
classes
exception handling
properties
|
|
Bite 27. Parse omdb movie json data
|
|
Working with APIs is very common these days and lucky …
3.10
APIs
glob
json
movie data
|
|
Bite 29. Martin's IQ test
|
|
Martin is preparing to pass an IQ test. The most …
3.10
enumerate
string module
|
|
Bite 170. Analyze McDonald's food data
|
|
In this Bite you are going to analyze some nutrition …
3.10
data analysis
pandas
|
|
Bite 33. Transpose a data structure
|
|
Sometimes you need to restructure a nested data structure. For …
3.10
dict
zip
|
|
Bite 34. Building a Karma app - implement the User class
|
|
This Bite is about implementing a User class that keeps …
3.10
classes
dunder methods
namedtuple
operator overloading
properties
|
|
Bite 35. Having fun with heapq
|
|
In this Bite you are provided with 3 data structures: …
3.10
datetime
heapq
|
|
Bite 79. Parse a csv file and create a bar chart
|
|
We played a bit with the Slack API today and …
3.10
bar chart
community
csv
requests
|
|
Bite 36. Having fun with *args and **kwargs
|
|
Write a function called get_profile that takes: a required name, …
3.10
args
function arguments
kwargs
|
|
Bite 40. Write a binary search algorithm
|
|
There are many ways to search for an item in …
3.10
algorithms
binary search
|
|
Bite 41. Write a login_required decorator
|
|
If you worked with Flask or Django you must have …
3.10
decorators
functools
|
|
Bite 42. Number Guessing Game Class
|
|
In this Bite you implement a Game class to perform …
3.10
classes
games
random
|
|
Bite 44. License key generator
|
|
Write a function called gen_key that creates a license key …
3.10
list comprehensions
secrets
string module
|
|
Bite 45. Keep a queue of last n items
|
|
How about writing a queue that holds the last 5 …
3.10
deque
|
|
Bite 49. Scrape Packt's html with BeautifulSoup
|
|
In this Bite you will parse Packt's free learning ebook …
3.10
beautifulsoup
namedtuple
requests
|
|
Bite 50. Make a little PyBites search engine (feedparser)
|
|
Complete the program below to create a little search command …
3.10
any
feedparser
list comprehensions
namedtuple
search
|
|
Bite 52. Create a movie quote API with Flask
|
|
In this Advanced Bite you will implement a full-blown CRUD …
3.10
APIs
Flask
movie data
|
|
Bite 54. Nicer formatting of a poem or text
|
|
In this Bite you complete print_hanging_indents to print a poem …
3.10
string manipulation
textwrap
|
|
Bite 55. Get the latest game releases from Steam's RSS feed
|
|
The Steam gaming platform has an RSS feed of their …
3.10
feedparser
namedtuple
|
|
Bite 78. Find programmers with common languages
|
|
Similar as last Bite we do another comparison of sequences …
3.10
set
set operations
|
|
Bite 57. Create a simple calculator that receives command line arguments
|
|
In this Bite you write a simple calculator that can …
3.10
argparse
functools
reduce
|
|
Bite 60. Create a deck of Uno cards
|
|
In this Bite you will create a deck of Uno …
3.10
list
list comprehensions
namedtuple
|
|
Bite 56. Add a command line interface to our BMI calculator
|
|
Complete create_parser below so that our BMI program can be …
3.10
argparse
|
|
Bite 62. Data structures matter - speed up your Python code
|
|
In this Bite we provide you with 5 functions which …
3.10
data structures
performance
|
|
Bite 67. Working with datetimes
|
|
This Bite involves solving two problems using datetime: We kicked …
3.10
datetime
timedelta
|
|
Bite 71. Keep state in a class + make its instance callable
|
|
In this Bite you write a small class to keep …
3.10
classes
dunder methods
|
|
Bite 72. Retrieve the right Ninja Belt based on score
|
|
As you have probably seen on the dashboard you can …
3.10
itertools
OrderedDict
|
|
Bite 75. Parse Unix cal to a weekday mapping
|
|
In the last bite we return the weekday from a …
3.10
re
Unix
zip
|
|
Bite 80. Check equality of two lists
|
|
In this Bite we compare two list objects for equality, …
3.10
enum
equality
list
|
|
Bite 84. Flatten lists recursively (Droste Bite)
|
|
Complete flatten that takes a list of lists (which can …
3.10
list
recursion
|
|
Bite 87. Convert Decimal to Roman Numerals
|
|
Complete romanize that takes a decimal number and converts it …
3.10
numbers
OrderedDict
|
|
Bite 81. Filter and order tweets by polarity values
|
|
In this Bite we collected some random tweets and populated …
3.10
namedtuple
TextBlob
Twitter
|
|
Bite 90. What South Park characters talk most?
|
|
Did we already tell you we love the collections module? …
3.10
Counter
csv
data analysis
defaultdict
requests
|
|
Bite 98. Code your way out of a grid
|
|
Given a 2D grid of equal length x and y, …
3.10
looping
namedtuple
numbers
tuple unpacking
|
|
Bite 99. Write an infinite sequence generator
|
|
Write a generator that produces the sequence [1, 'A', 2, …
3.10
generators
itertools
string module
zip
|
|
Intro Bite 02. Infinite loop, input, continue and break
|
|
In this Bite we'll get you to take user input …
3.10
break
continue
freebie
input
mock.patch
while
|
|
Intro Bite 03. Loop through a dictionary and pluralise a word
|
|
You're given a dictionary of people and the number of …
3.10
dict
freebie
looping
|
|
Intro Bite 08. Loop over a dict of namedtuples calculating a total score
|
|
In this Bite you calculate the total amount of points …
3.10
counting
dict
freebie
namedtuple
|
|
Bite 113. Filter words with non-ascii characters
|
|
In this Bite you extract words from a text that …
3.10
all
ascii
ord
unicode
|
|
Bite 114. Implement a Color class with staticmethod
|
|
As the new junior developer, you have been charged with …
3.10
hex
__repr__
staticmethod
__str__
string module
|
|
Bite 141. Primitive date format inferrer
|
|
Complete the get_dates method given the following: a listing of …
3.10
classmethod
datetime
enum
exception handling
|
|
Bite 116. List and filter files in a directory
|
|
In this Bite you complete get_files that receives a dirname …
3.10
generators
glob
os module
|
|
Bite 121. Determine the strength of a password
|
|
In this Bite you evaluate the strength of a password. …
3.10
re
string matching
|
|
Bite 122. Check if two words are anagrams
|
|
An anagram is a word or phrase formed by rearranging …
3.10
anagram
string matching
|
|
Bite 126. The Emoji (Unicode) Bite
|
|
Python 3 supports Unicode so we can do cool stuff …
3.10
emojis
sys
unicode
|
|
Bite 128. Work with datetime's strptime and strftime
|
|
In this Bite you get some more practice with datetime's …
3.10
datetime
strftime
strptime
|
|
Bite 130. Analyze some basic Car Data
|
|
In this exercise you will analyze some basic car data. …
3.10
Counter
data analysis
list comprehensions
set
|
|
Bite 133. Convert an Amazon URL into an affiliation link
|
|
Can you help PyBites automate their Amazon affiliation link creation? …
3.10
regular expressions
string manipulation
|
|
Bite 136. Bloodtypes
|
|
Check red blood cell compatibility between donor and recipient. For …
3.10
enum
exception handling
multi type input
|
|
Bite 137. Gourmets' Nightmare
|
|
Many gourmets struggle to find the perfect pairing of wines …
3.10
Counter
intersection
operator
sorting
|
|
Bite 140. PyBites First Pandas Bite
|
|
This is a Pandas proof-of-concept Bite. We just added the …
3.10
csv
data analysis
pandas
|
|
Bite 341. Pydantic part II
|
|
In order to measure daily food intake as a user …
3.10
FastAPI
freebie
Pydantic
|
|
Bite 354. When to Use Command Line Option (CLI) Options and When CLI Arguments?
|
|
In Typer, you can use either typer.Option or typer.Argument. Well, …
3.10
command line
Typer
|
|
Bite 143. Look up a value in 3 dictionaries
|
|
In this Bite you are presented with 3 dictionaries. Complete …
3.10
collections
dict
|
|
Bite 145. Record Breakers
|
|
The data for this challenge comes from a subset of …
3.10
csv
data analysis
pandas
|
|
Bite 149. Sorting words with constraint
|
|
Here is a list of words Jacob is trying to …
3.10
lambda
sorting
string manipulation
|
|
Bite 150. Turn messy CSV into JSON
|
|
At the 1 year mark of our platform here is …
3.10
csv
json
pandas
re
string manipulation
|
|
Bite 156. Make an index of story characters
|
|
You know the index at the end of a book …
3.10
collections
defaultdict
enumerate
sorting
string matching
|
|
Bite 158. Subclass the list built-in
|
|
In this Bite you will complete IntList, a subclass of …
3.10
dunder methods
exception handling
inheritance
list
mean
median
operator overloading
properties
statistics
|
|
Bite 159. Create a simple calculator
|
|
In this Bite you will create a simple calculator. It …
3.10
exception handling
numbers
operator
|
|
Bite 161. Count the number of files and directories
|
|
Complete count_dirs_and_files traversing the passed in directory path. Return a …
3.10
counting
directories
files
os module
|
|
Bite 162. Vertically align output of counters
|
|
In this Bite you are tasked with "physically" aligning the …
3.10
string formatting
|
|
Bite 163. Which packages were upgraded?
|
|
In this Bite you compare a list of packages (aka …
3.10
comparison
dict
numbers
string manipulation
|
|
Bite 173. Set up future notifications
|
|
Let's do another datetime processing Bite. Complete add_todo below that …
3.10
datetime
findall
f-strings
timedelta
|
|
Bite 175. Find missing dates
|
|
Complete get_misssing_dates that takes an (unordered) sequence of datetime.date objects. …
3.10
datetime
dateutil
pandas
|
|
Bite 176. Create a variable length chessboard
|
|
In this Bite you are going to print a chessboard …
3.10
modulo
range
stdout
|
|
Bite 180. Group names by country
|
|
In this Bite you are presented with a list of …
3.10
collections
defaultdict
groupby
|
|
Bite 184. Analyze some Bite stats data
|
|
In this Bite we will look at some Bite stats …
3.10
Counter
csv
data analysis
set
|
|
Bite 186. Calculate number of books to have read at date ...
|
|
For this Bite you are asked to start working on …
3.10
datetime
dateutil
exception handling
|
|
Bite 188. Get statistics from PyBites test code
|
|
Did you know Python has a statistics module? For this …
3.10
data analysis
file processing
statistics
|
|
Bite 192. Some logging practice
|
|
You are to flesh out the log_it() function so that …
3.10
callable
logging
|
|
Bite 195. Analyze NBA Data with sqlite3
|
|
In this Bite you are going to use sqlite3! We …
3.10
data analysis
databases
SQL
sqlite3
|
|
Bite 200. 🥳 Minecraft Enchantable Items
|
|
My kids love Minecraft and they always want me to …
3.10
beautifulsoup
web scraping
|
|
Bite 356. Using Typer Callbacks to Create Command Line Interface (CLI) Parameters
|
|
In the previous Bite you have created your first simple …
3.10
command line
Typer
|
|
Intro Bite 05. Slice and dice
|
|
Take the block of text provided and strip off the …
3.10
freebie
replace
slicing
split
string module
strip
|
|
Bite 166. Complete a tox ini file parser class
|
|
The INI file format is an informal standard for configuration …
3.10
classes
configparser
properties
string matching
string parsing
tox
|
|
Newbie Bite 35. Working With Dates
|
|
In this bite, we are going to explore the datetime module …
3.10
datetime
imports
modules
newbie
|
|
Newbie Bite 32. Dict Retrieval - part 2
|
|
In this bite, we are going to revisit dictionaries. The …
3.10
dictionaries
newbie
|
|
Newbie Bite 48. String Module
|
|
In this exercise, you'll practice writing another list comprehension (a …
3.10
list comprehensions
newbie
string manipulation
string module
|
|
Newbie Bite 34. Random Module
|
|
In this Bite, you'll write a simple number guessing game …
3.10
imports
modules
newbie
random
|
|
Newbie Bite 33. Dict Retrieval - part 3
|
|
In this bite, we continue our exploration of Python dictionaries. …
3.10
dictionaries
newbie
|
|
Newbie Bite 40. Scope
|
|
In this Bite, you'll learn about variable scope in Python. …
3.10
newbie
scope
|
|
Newbie Bite 42. List Comprehension
|
|
In this Bite, you will learn how to write list …
3.10
integer
isdigit
list comprehensions
newbie
numbers
|
|
Newbie Bite 45. Exceptions
|
|
In this Bite, we introduce you to the essentials of …
3.10
error handling
exceptions
functions
newbie
|
|
Newbie Bite 44. Constants
|
|
In this Bite, you'll learn about assigning and using constants …
3.10
constants
math
newbie
|
|
Newbie Bite 26. Reading Errors
|
|
Welcome to the second half of the Newbie Bites. We …
3.10
debugging
error handling
newbie
syntax errors
|
|
Newbie Bite 49. Formatting Intro
|
|
In this Bite, you'll learn about string interpolation using the …
3.10
.format()
newbie
string interpolation
strings
|
|
Newbie Bite 50. Read The Docs
|
|
In this Bite, you'll practice reading and using Python's official …
3.10
collections
counter
documentation
newbie
reading docs
|
|
Newbie Bite 37. Make a Class
|
|
In this Bite, you'll learn about writing Python classes. Classes …
3.10
classes
newbie
|
|
Newbie Bite 29. Default Arguments
|
|
In this Bite, we are going to explore the concept …
3.10
arguments
functions
newbie
|
|
Newbie Bite 36. Working With Dates - part 2
|
|
In this Bite, we are going to continue working with …
3.10
imports
modules
newbie
|
|
Newbie Bite 27. Failing Tests
|
|
As you continue your coding journey on our platform, it's …
3.10
debugging
newbie
pytest
testing
|
|
Newbie Bite 39. Make a Dataclass
|
|
In this Bite, you'll explore Python dataclasses, introduced in Python …
3.10
classes
dataclasses
newbie
|
|
Newbie Bite 31. Word Count
|
|
In this bite, we are going to explore two useful …
3.10
methods
newbie
strings
|
|
Newbie Bite 38. Class With Str
|
|
This Bite continues where the previous class Bite left off. …
3.10
classes
dunder methods
newbie
|
|
Newbie Bite 28. Type Hints
|
|
In this bite, we are going to explore type hints …
3.10
newbie
type hints
|
|
Newbie Bite 30. Special Chars
|
|
In this Bite, you'll learn about special characters in Python …
3.10
newbie
newline
special characters
strings
tab
|
|
Newbie Bite 41. String Manipulations
|
|
In this Bite, you'll learn more about manipulating strings in …
3.10
lists
lowercase
newbie
slicing
split
string manipulation
strings
strip
|
|
Intro Bite 10. Type conversion and exception handling
|
|
In this Bite you complete the divide_numbers function that takes …
3.10
exception handling
freebie
raise
type casting
|
|
Newbie Bite 46. For Loop With Break And Continue
|
|
In this Bite, you'll learn how to control the flow …
3.10
break
continue
control flow
loops
newbie
|
|
Newbie Bite 47. In Operator
|
|
In this Bite, you'll learn how to use the in …
3.10
collections
in operator
lists
newbie
|
|
Bite 124. Marvel data analysis
|
|
This is a simplified version of our Marvel Data Analysis we …
3.10
Counter
csv
data analysis
list comprehensions
rounding
sum
|
|
Newbie Bite 43. Named Tuple
|
|
In this Bite, you'll learn about the namedtuple object. These …
3.10
collections
namedtuples
newbie
|
|