Bite 10. Practice exceptions
|
|
In this Bite you'll learn to catch and raise Python …
3.10
exception handling
raise
|
|
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
|
|
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 12. Write a user validation function
|
|
Create a function that takes a username and checks for …
3.10
classes
exception handling
namedtuple
|
|
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 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 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 42. Number Guessing Game Class
|
|
In this Bite you implement a Game class to perform …
3.10
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 …
3.10
argparse
|
|
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 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 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 …
3.10
pytz
timezones
|
|
Bite 76. The singledispatch countdown challenge
|
|
We are stoked and grateful to have Martin have you …
3.10
decorators
functools
singledispatch
|
|
Bite 86. Create a RGB-to-Hex converter
|
|
Designer Mary wants to convert her CSS from statements like …
3.10
string formatting
|
|
Bite 87. Convert Decimal to Roman Numerals
|
|
Complete romanize that takes a decimal number and converts it …
3.10
numbers
OrderedDict
|
|
Bite 92. Humanize a datetime
|
|
In this Bite you will convert a timedelta object into …
3.10
datetime
namedtuple
|
|
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 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 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 141. Primitive date format inferrer
|
|
Complete the get_dates method given the following: a listing of …
3.10
classmethod
datetime
enum
exception handling
|
|
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 144. Calculate the Number of Months Passed
|
|
Some more fun working with dates! In this Bite you …
3.10
datetime
dateutil
exception handling
|
|
Bite 151. Contemporary Composers
|
|
You are given a list of operas and a list …
3.10
datetime
dict
exception handling
generators
namedtuple
|
|
Bite 159. Create a simple calculator
|
|
In this Bite you will create a simple calculator. It …
3.10
exception handling
numbers
operator
|
|
Bite 169. Simple length converter
|
|
Your task is to complete the convert() function. It's purpose …
3.10
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 …
3.10
datetime
dateutil
exception handling
|
|
Bite 207. Cached property decorator
|
|
Given the sample class Planet, computing the mass attribute of …
3.10
caching
classes
decorators
properties
|
|
Bite 217. Capture stdout
|
|
Sometimes you need to capture stdout in your script. Python …
3.10
context managers
StringIO
|
|
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 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 293. N digit numbers
|
|
Write a function that accepts a list of numbers and converts …
3.10
numbers
|
|
Bite 299. Base converter
|
|
For this challenge, you are going to have write a …
3.10
base
exception handling
|
|
Bite 307. SQLite3 introduction
|
|
In this Bite, you are going to get some practice …
3.10
databases
SQL
sqlite3
|
|
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 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 331. Convolution in Neural Networks
|
|
Finally a Bite about deep learning! At least, about one …
3.10
deep learning
numpy
|
|
Bite 340. Update and delete food objects
|
|
Now that we're able to create and retrieve Food objects, …
3.10
FastAPI
freebie
|
|
Bite 348. Citation indexes
|
|
Academic research innovates by publishing papers, i.e., documents collecting ideas …
3.10
builtins
exception handling
typing
|
|
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 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 366. Goal Tracker
|
|
In this Bite, you build a function that tells you …
3.10
date
datetime
tuple unpacking
|
|
Bite 367. Add Pi Day to the calendar
|
|
Python has a brilliant but often overlooked module called calendar. …
3.10
calendar
tuple unpacking
|
|