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
|
|