Bite 10. Practice exceptions
|
|
In this Bite you'll learn to catch and raise Python …
exception handling
raise
|
|
Intro Bite 10. Type conversion and exception handling
|
|
In this Bite you complete the divide_numbers function that takes …
exception handling
freebie
raise
type casting
|
|
Bite 11. Enrich a class with dunder methods
|
|
Let's enrich an Account class by adding dunder (aka special) …
dunder methods
functools
properties
|
|
Bite 12. Write a user validation function
|
|
Create a function that takes a username and checks for …
classes
exception handling
namedtuple
|
|
Bite 24. ABC's and class inheritance
|
|
ABC's or Abstract Base Classes are great to enforce a …
ABCs
abstractmethod
classes
inheritance
|
|
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 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 42. Number Guessing Game Class
|
|
In this Bite you implement a Game class to perform …
classes
games
random
|
|
Bite 58. Using argparse to interface with a grocery cart
|
|
Below is a Groceries class with add/delete/show/search methods.You as a …
argparse
|
|
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 61. Create a variable size Paw Patrol card deck with random actions
|
|
The Paw Patrol card deck consists of 32 cards ranging …
itertools
namedtuple
random
string module
|
|
Bite 70. Create your own iterator
|
|
In this Bite you make an iterator called EggCreator by …
iterators
random
|
|
Bite 73. Organize a meeting between timezones (pytz)
|
|
Help PyBites community friends find a reasonable common time to …
pytz
timezones
|
|
Bite 76. The singledispatch countdown challenge
|
|
We are stoked and grateful to have Martin have you …
decorators
functools
singledispatch
|
|
Bite 86. Create a RGB-to-Hex converter
|
|
Designer Mary wants to convert her CSS from statements like …
string formatting
|
|
Bite 87. Convert Decimal to Roman Numerals
|
|
Complete romanize that takes a decimal number and converts it …
numbers
OrderedDict
|
|
Bite 92. Humanize a datetime
|
|
In this Bite you will convert a timedelta object into …
datetime
namedtuple
|
|
Bite 93. Rock-paper-scissors and generator's send
|
|
Generators are cool right?! Did you know you can send …
coroutines
games
random
|
|
Bite 114. Implement a Color class with staticmethod
|
|
As the new junior developer, you have been charged with …
hex
__repr__
staticmethod
__str__
string module
|
|
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 141. Primitive date format inferrer
|
|
Complete the get_dates method given the following: a listing of …
classmethod
datetime
enum
exception handling
|
|
Bite 142. Exception Handling: Calculate the Winning Player
|
|
Complete the two functions below: calculate_score takes a list of …
exception handling
namedtuple
numbers
|
|
Bite 144. Calculate the Number of Months Passed
|
|
Some more fun working with dates! In this Bite you …
datetime
dateutil
exception handling
|
|
Bite 151. Contemporary Composers
|
|
You are given a list of operas and a list …
datetime
dict
exception handling
generators
namedtuple
|
|
Bite 159. Create a simple calculator
|
|
In this Bite you will create a simple calculator. It …
exception handling
numbers
operator
|
|
Bite 169. Simple length converter
|
|
Your task is to complete the convert() function. It's purpose …
exception handling
numbers
rounding
|
|
Bite 186. Calculate number of books to have read at date ...
|
|
For this Bite you are asked to start working on …
datetime
dateutil
exception handling
|
|
Bite 207. Cached property decorator
|
|
Given the sample class Planet, computing the mass attribute of …
caching
classes
decorators
properties
|
|
Bite 217. Capture stdout
|
|
Sometimes you need to capture stdout in your script. Python …
context managers
StringIO
|
|
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
|
|
Bite 282. Evaluate a Bridge hand
|
|
In this bite you will implement a BridgeHand class representing …
classes
enum
exception handling
looping
properties
sorting
|
|
Bite 293. N digit numbers
|
|
Write a function that accepts a list of numbers and converts …
numbers
|
|
Bite 299. Base converter
|
|
For this challenge, you are going to have write a …
base
exception handling
|
|
Bite 307. SQLite3 introduction
|
|
In this Bite, you are going to get some practice …
databases
SQL
sqlite3
|
|
Bite 321. Magic bytes
|
|
Magic numbers are bytes that can be used to uniquely …
bytes
csv
exception handling
file processing
images
string parsing
|
|
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 340. Update and delete food objects
|
|
Now that we're able to create and retrieve Food objects, …
FastAPI
freebie
|
|