Bite 1. Sum n numbers


Write a function that can sum up numbers:It should receive …
default args
None
range
sum


Bite 39. Calculate the total duration of a course


In this Bite you read in a text file with …
datetime
findall
numbers
timedelta


Bite 57. Create a simple calculator that receives command line arguments


In this Bite you write a simple calculator that can …
argparse
functools
reduce


Bite 59. Create a multiplication table class of variable length


Danny does not like rote learning (nor do we!). He …
classes
dunder methods
exception handling
numbers


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 87. Convert Decimal to Roman Numerals


Complete romanize that takes a decimal number and converts it …
numbers
OrderedDict


Bite 94. Parse PyCon talk data from YouTube


PyCon2018 was awesome! But you clearly had to choose the …
list comprehensions
max
namedtuple


Bite 96. Build Unix' wc program in Python


In this Bite you will convert Unix' wc command into …
file processing
tempfile
Unix


Bite 98. Code your way out of a grid


Given a 2D grid of equal length x and y, …
looping
namedtuple
numbers
tuple unpacking


Bite 107. Filter numbers with a list comprehension


Complete the function below that receives a list of numbers …
list comprehensions
modulo


Bite 117. Round a number even (a.k.a. banker's rounding)


Bankers Rounding is an algorithm for rounding quantities to integers, …
Decimal
rounding


Bite 120. Write a numbers validation decorator


Let's get some more practice with decorators ... in this …
decorators


Bite 121. Determine the strength of a password


In this Bite you evaluate the strength of a password. …
re
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 134. Two Sums


Given a random list of numbers, your task is to …
index
looping
sorting
sum


Bite 142. Exception Handling: Calculate the Winning Player


Complete the two functions below: calculate_score takes a list of …
exception handling
namedtuple
numbers


Bite 152. Manipulate string decorator


Write a decorator called strip_range that replaces characters with dots. …
decorators
kwargs
list
string manipulation


Bite 153. Round a sequence of numbers


It's time to get mathematical! In this Bite we ask …
list comprehensions
math
rounding


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 159. Create a simple calculator


In this Bite you will create a simple calculator. It …
exception handling
numbers
operator


Bite 163. Which packages were upgraded?


In this Bite you compare a list of packages (aka …
comparison
dict
numbers
string manipulation


Bite 169. Simple length converter


Your task is to complete the convert() function. It's purpose …
exception handling
numbers
rounding


Bite 206. Calculate and evenly split the bill


Three old friends Bob, Mary, and Alice meet at PyCon …
Decimal
numbers
rounding


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 211. Write a retry decorator


Write a retry decorator that retries to execute the function …
decorators
exception handling


Bite 230. Thumbs up for operator overloading


In this Bite we learn a bit of operator overloading. …
classes
dunder methods
emojis
exception handling
operator overloading

