Bite 89. Playing with lists and dicts
|
|
In this Bite you are presented with a us_state_abbrev dict β¦
3.10
data structures
dict
list
|
|
Bite 84. Flatten lists recursively (Droste Bite)
|
|
Complete flatten that takes a list of lists (which can β¦
3.10
list
recursion
|
|
Bite 80. Check equality of two lists
|
|
In this Bite we compare two list objects for equality, β¦
3.10
enum
equality
list
|
|
Bite 60. Create a deck of Uno cards
|
|
In this Bite you will create a deck of Uno β¦
3.10
list
list comprehensions
namedtuple
|
|
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 152. Manipulate string decorator
|
|
Write a decorator called strip_range that replaces characters with dots. β¦
3.10
decorators
kwargs
list
string manipulation
|
|
Bite 158. Subclass the list built-in
|
|
In this Bite you will complete IntList, a subclass of β¦
3.10
dunder methods
exception handling
inheritance
list
mean
median
operator overloading
properties
statistics
|
|
Newbie Bite 09. Lists
|
|
Next up on our Python journey we're going to dive β¦
3.10
list
newbie
|
|
Newbie Bite 10. Returning items by list index
|
|
Lists are pretty awesome (both in Python and in real β¦
3.10
list
newbie
|
|
Newbie Bite 11. Adding and Removing items from a list
|
|
Now that we have our list, what if we decide β¦
3.10
list
newbie
|
|
Newbie Bite 12. Dicts
|
|
It's time to dive into the next data structure in β¦
3.10
dict
list
newbie
|
|
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 295. Join lists
|
|
Write a function that accepts a list of lists and β¦
3.10
iteration
joining
list
|
|
Bite 296. Jagged list
|
|
Write a function that takes an irregular shaped list of β¦
3.10
iteration
itertools
list
|
|
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 9. Palindromes
|
|
Write a function to determine if a word or phrase β¦
3.10
algorithms
list comprehensions
max
reverse
|
|
Bite 18. Find the most common word
|
|
Write a function that returns the most common (non stop)word β¦
3.10
Counter
data analysis
list comprehensions
|
|
Bite 21. Query a nested data structure
|
|
Given the provided cars dictionary: Get all Jeeps Get the β¦
3.10
data structures
dictionary comprehensions
list comprehensions
sorting
|
|
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 50. Make a little PyBites search engine (feedparser)
|
|
Complete the program below to create a little search command β¦
3.10
any
feedparser
list comprehensions
namedtuple
search
|
|
Bite 44. License key generator
|
|
Write a function called gen_key that creates a license key β¦
3.10
list comprehensions
secrets
string module
|
|
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
|
|
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 124. Marvel data analysis
|
|
This is a simplified version of our Marvel Data Analysis we β¦
3.10
Counter
csv
data analysis
list comprehensions
rounding
sum
|
|
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 130. Analyze some basic Car Data
|
|
In this exercise you will analyze some basic car data. β¦
3.10
Counter
data analysis
list comprehensions
set
|
|
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 153. Round a sequence of numbers
|
|
It's time to get mathematical! In this Bite we ask β¦
3.10
list comprehensions
math
rounding
|
|
Bite 174. String manipulation and metrics
|
|
This bite will get you to play around with creating β¦
3.10
Counter
dataclasses
list comprehensions
properties
string formatting
string manipulation
translate
|
|
Bite 223. Unix file permissions
|
|
Each file and directory in Unix has its permissions broken β¦
3.10
dict
list comprehensions
string manipulation
|
|
Bite 246. Test print / standard output
|
|
In this Bite you test a function that prints to β¦
3.7
capfd
capsys
list comprehensions
pytest
stdout
|
|
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 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
|
|
Newbie Bite 42. List Comprehension
|
|
In this Bite, you will learn how to write list β¦
3.10
integer
isdigit
list comprehensions
newbie
numbers
|
|
Newbie Bite 48. String Module
|
|
In this exercise, you'll practice writing another list comprehension (a β¦
3.10
list comprehensions
newbie
string manipulation
string module
|
|
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
|
|
Newbie Bite 41. String Manipulations
|
|
In this Bite, you'll learn more about manipulating strings in β¦
3.10
lists
lowercase
newbie
slicing
split
string manipulation
strings
strip
|
|
Newbie Bite 47. In Operator
|
|
In this Bite, you'll learn how to use the in β¦
3.10
collections
in operator
lists
newbie
|
|
Bite 1. Sum n numbers
|
|
Write a Python function that calculates the sum of a β¦
3.10
default args
freebie
None
range
sum
|
|
Bite 3. Word Values
|
|
Find the dictionary word with the highest value using Scrabble rules. β¦
3.10
freebie
max
Scrabble
sum
|
|
Bite 17. Form teams from a group of friends
|
|
Write a function called friends_teams that takes a list of β¦
3.10
itertools
|
|
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 27. Parse omdb movie json data
|
|
Working with APIs is very common these days and lucky β¦
3.10
APIs
glob
json
movie data
|
|
Bite 28. Converting date strings to datetimes
|
|
In this Bite you are provided with a list of β¦
3.10
Counter
datetime
findall
|
|
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 31. Matrix multiplication / @ operator
|
|
Since 3.5 Python has a binary operator to be used β¦
3.10
dunder methods
__matmul__
operator overloading
|
|
Bite 35. Having fun with heapq
|
|
In this Bite you are provided with 3 data structures: β¦
3.10
datetime
heapq
|
|
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 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 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 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 81. Filter and order tweets by polarity values
|
|
In this Bite we collected some random tweets and populated β¦
3.10
namedtuple
TextBlob
Twitter
|
|
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
|
|
Bite 113. Filter words with non-ascii characters
|
|
In this Bite you extract words from a text that β¦
3.10
all
ascii
ord
unicode
|
|
Bite 116. list and filter files in a directory
|
|
In this Bite you complete get_files that receives a dirname β¦
3.10
generators
glob
os module
|
|
Bite 123. Find the user with most friends
|
|
In this Bite you are presented with a users dict β¦
3.10
defaultdict
looping
sorting
tuples
|
|
Bite 134. Two Sums
|
|
Given a random list of numbers, your task is to β¦
3.10
index
looping
sorting
sum
|
|
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 147. 100 WEEKDays of Code Date Range
|
|
Doing a #100DaysOfCode can be challenging, and some of it β¦
3.10
datetime
dateutil
|
|
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 149. Sorting words with constraint
|
|
Here is a list of words Jacob is trying to β¦
3.10
lambda
sorting
string manipulation
|
|
Bite 151. Contemporary Composers
|
|
You are given a list of operas and a list β¦
3.10
datetime
dict
exception handling
generators
namedtuple
|
|
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 156. Make an index of story characters
|
|
You know the index at the end of a book β¦
3.10
collections
defaultdict
enumerate
sorting
string matching
|
|
Bite 163. Which packages were upgraded?
|
|
In this Bite you compare a list of packages (aka β¦
3.10
comparison
dict
numbers
string manipulation
|
|
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 180. Group names by country
|
|
In this Bite you are presented with a list of β¦
3.10
collections
defaultdict
groupby
|
|
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 189. Filter a list of names
|
|
Here is a Bite to practice the continue and break β¦
3.10
break
continue
generators
looping
|
|
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 200. π₯³ Minecraft Enchantable Items
|
|
My kids love Minecraft and they always want me to β¦
3.10
beautifulsoup
web scraping
|
|
Bite 202. Analyze some Bite stats data - part II
|
|
In this Bite you will analyze complexity levels of our β¦
3.10
csv
data analysis
sorting
|
|
Bite 209. Write a Sphinx docstring
|
|
Your team uses Sphinx and wants you to comply with β¦
3.10
data types
docstring
sphinx
|
|
Bite 211. Write a retry decorator
|
|
Write a retry decorator that retries executing the function it β¦
3.10
decorators
exception handling
|
|
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
|
|
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 241. Write tests for list_to_decimal
|
|
Our 4th test Bite. Michael made a calculator that will β¦
3.7
exception handling
freebie
pytest
|
|
Bite 255. Codon Usage
|
|
The genetic code of all organisms uses a 3 base β¦
3.10
bioinformatics
collections
textwrap
|
|
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 258. What the flux?
|
|
One of the benefits of accounting is being able to β¦
3.10
finance
math
pandas
|
|
Bite 260. Let's play with Pandas DataFrames
|
|
To this point in the Pandas learning path we have β¦
3.10
dataframes
pandas
|
|
Bite 265. Optimal fund raising
|
|
Here is another classic algorithm problem wrapped in a Bite. β¦
3.10
algorithms
looping
math
|
|
Bite 272. Find common words
|
|
Given two sentences that each contains words in case insensitive β¦
3.10
algorithms
set operations
string matching
|
|
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 277. Number of coin changes
|
|
Pat is going to apply for a cashier job in β¦
3.10
algorithms
dynamic programming
|
|
Bite 278. Major and minor numbers
|
|
You are given a list of integers. Write code to β¦
3.10
collections
max
min
numbers
|
|
Bite 281. Generating sales reports from Github data
|
|
In this bite you will learn how to process the β¦
3.8
data analysis
pandas
|
|
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
|
|
Bite 288. Smallest number
|
|
Write a function that accepts a list of digits and β¦
3.10
numbers
|
|
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 291. Find the fastest speech
|
|
In this Bite you will parse an SRT (SubRip Subtitle β¦
3.10
datetime
sorting
string manipulation
|
|
Bite 293. N digit numbers
|
|
Write a function that accepts a list of numbers and converts β¦
3.10
numbers
|
|
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 301. Exchange rates
|
|
In this Bite you have to provide the currency exchange β¦
3.10
datetime
dict
sorting
|
|
Bite 303. Unique genes
|
|
You have received a list of DNA sequences for a β¦
3.8
bioinformatics
biopython
|
|
Bite 307. SQLite3 introduction
|
|
In this Bite, you are going to get some practice β¦
3.10
databases
SQL
sqlite3
|
|
Bite 308. Calculate the median from a dictionary
|
|
You are in charge of a program that continuously collects β¦
3.10
median
sorting
sum
|
|
Bite 309. A simple document class
|
|
When we want to transform our data often, method chaining β¦
3.10
annotations
classes
method chaining
properties
string
|
|
Bite 310. Create file pairs
|
|
In this bite you will write a function that pairs β¦
3.10
bioinformatics
files
regular expressions
|
|
Bite 311. Cleaning text with pandas
|
|
We recently published a blog post about how to approach β¦
3.8
data cleaning
pandas
TF-IDF
|
|
Bite 312. Scoring objects
|
|
In this Bite you are going to score objects: Object β¦
3.10
builtins
importlib
keyword
typing
|
|
Bite 326. Abstract Syntax Tree (AST) Printer
|
|
In this Bite we familiarise with Abstract Syntax Trees (ASTs). β¦
3.10
AST
|
|
Bite 327. AST visitor
|
|
In Bite 312 we learned how to identify builtin functions, β¦
3.10
AST
|
|
Bite 332. Searching for an apartment
|
|
Bill is looking for a new apartment with good view, β¦
3.10
algorithms
|
|
Bite 333. MetropolisβHastings Algorithm
|
|
In statistics and statistical physics, the Metropolis–Hastings algorithm is a β¦
3.10
algorithms
Markov chain Monte Carlo
numpy
statistics
|
|
Bite 336. FastAPI Hello World
|
|
Welcome to this FastAPI learning path. In the next 10 β¦
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 349. Writing better Spanish
|
|
Bob is a lazy typer and often forgets to accentuate β¦
3.10
ascii
dict
unicode
unicodedata
|
|
Bite 351. Get spelling suggestions
|
|
Complete the get_spelling_suggestions() function that takes a word and returns β¦
3.10
comparison
namedtuple
TextBlob
tuple unpacking
typing
|
|
Bite 352. Hash SQL statements
|
|
In this Bite you are going to implement a simple β¦
3.10
hashlib
SQL
|
|
Bite 367. Add Pi Day to the calendar
|
|
Python has a brilliant but often overlooked module called calendar. β¦
3.10
calendar
tuple unpacking
|
|
Bite 374. Group Anagrams
|
|
As defined by the OED, an anagram is a word, β¦
array
defaultdict
strings
|
|
Bite 375. Find All Letter Combinations of a Phone Number
|
|
The typical phone keypad (pictured) features numbers (0 - 9), β¦
backtracking
itertools
strings
|
|
Bite 378. Organizational Chart
|
|
Of all the types of questions you are likely to β¦
binary tree
depth-first search
graph traversal
|
|
Bite 379. Hedge Maze
|
|
Imagine you're trapped in a mysterious maze, much like the β¦
breadth-first
graph traversal
maze
|
|