Bite 238. Write tests for Fibonacci
|
|
Our first Test Bite! The concept is simple: to pass …
3.7
fibonacci
freebie
pytest
|
|
Newbie Bite 01. Assigning Objects
|
|
Welcome to our Newbie Bites, it's time to learn the …
3.10
freebie
newbie
variables
|
|
Bite 342. Food logging CRUD
|
|
In this Bite you will use the Pydantic FoodEntry model …
3.10
FastAPI
freebie
|
|
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 241. Write tests for list_to_decimal
|
|
Our 4th test Bite. Michael made a calculator that will …
3.7
exception handling
freebie
pytest
|
|
Bite 343. FastAPI Exception handling
|
|
In this Bite we'll take the API we built in …
3.10
FastAPI
freebie
|
|
Intro Bite 04. Split and join
|
|
Split up the message on newline (\n) using the split …
3.10
freebie
join
split
|
|
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
|
|
Newbie Bite 03. Basic Printing
|
|
Before we dive too far into these objects, let's quickly …
3.10
freebie
newbie
print
|
|
Bite 337. A little detour: Pydantic
|
|
Pydantic is an awesome library to do data validation and …
3.10
FastAPI
freebie
Pydantic
|
|
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
|
|
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
|
|
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 344. Return an HTML response
|
|
You use FastAPI primarily to build APIs, but it can …
3.10
FastAPI
freebie
|
|
Bite 336. FastAPI Hello World
|
|
Welcome to this FastAPI learning path. In the next 10 …
3.10
FastAPI
freebie
|
|
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 339. Retrieve food objects
|
|
Now that our API can add food objects, let's retrieve …
3.10
FastAPI
freebie
|
|
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 341. Pydantic part II
|
|
In order to measure daily food intake as a user …
3.10
FastAPI
freebie
Pydantic
|
|
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
|
|
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
|
|