Bite 90. What South Park characters talk most?
|
|
Did we already tell you we love the collections module? β¦
3.10
Counter
csv
data analysis
defaultdict
requests
|
|
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 97. BeautifulSoup II - scrape US holidays
|
|
In this Bite we use BeautifulSoup to scrape US holidays β¦
3.10
beautifulsoup
defaultdict
dict
|
|
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 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 180. Group names by country
|
|
In this Bite you are presented with a list of β¦
3.10
collections
defaultdict
groupby
|
|
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 374. Group Anagrams
|
|
As defined by the OED, an anagram is a word, β¦
array
defaultdict
strings
|
|
Bite 13. Convert dict to namedtuple/json
|
|
Write a function to convert the given blog dict to β¦
3.10
dict
json
namedtuple
|
|
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 33. Transpose a data structure
|
|
Sometimes you need to restructure a nested data structure. For β¦
3.10
dict
zip
|
|
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
|
|
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 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 143. Look up a value in 3 dictionaries
|
|
In this Bite you are presented with 3 dictionaries. Complete β¦
3.10
collections
dict
|
|
Bite 151. Contemporary Composers
|
|
You are given a list of operas and a list β¦
3.10
datetime
dict
exception handling
generators
namedtuple
|
|
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 163. Which packages were upgraded?
|
|
In this Bite you compare a list of packages (aka β¦
3.10
comparison
dict
numbers
string manipulation
|
|
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 196. Create a JS-like dict object
|
|
In this Bite we challenge you to make a dict-like β¦
3.10
classes
dict
inheritance
javascript
|
|
Newbie Bite 12. Dicts
|
|
It's time to dive into the next data structure in β¦
3.10
dict
list
newbie
|
|
Newbie Bite 23. Looping through a dict
|
|
While we've explained how for loops work, it's worth diving β¦
3.10
dict
newbie
|
|
Bite 223. Unix file permissions
|
|
Each file and directory in Unix has its permissions broken β¦
3.10
dict
list comprehensions
string manipulation
|
|
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 257. Extract users dict from a multiline string
|
|
A quick Bite to practice some string parsing extracting a β¦
3.10
dict
string parsing
|
|
Bite 297. Rename keys
|
|
The Data Processing Department was writing a script to import β¦
3.10
data cleaning
dict
iteration
|
|
Bite 301. Exchange rates
|
|
In this Bite you have to provide the currency exchange β¦
3.10
datetime
dict
sorting
|
|
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 349. Writing better Spanish
|
|
Bob is a lazy typer and often forgets to accentuate β¦
3.10
ascii
dict
unicode
unicodedata
|
|
Bite 371. Python3.9 - Dictionary Merge
|
|
Python 3.9 brought an exciting enhancement to the dict built-in β¦
dict
Python3.9
union
|
|
Newbie Bite 32. Dict Retrieval - part 2
|
|
In this bite, we are going to revisit dictionaries. The β¦
3.10
dictionaries
newbie
|
|
Newbie Bite 33. Dict Retrieval - part 3
|
|
In this bite, we continue our exploration of Python dictionaries. β¦
3.10
dictionaries
newbie
|
|
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 26. Dictionary comprehensions are awesome
|
|
A dictionary comprehension is like a list comprehension, but it β¦
3.10
dictionary comprehensions
|
|
Bite 87. Convert Decimal to Roman Numerals
|
|
Complete romanize that takes a decimal number and converts it β¦
3.10
numbers
OrderedDict
|
|
Bite 72. Retrieve the right Ninja Belt based on score
|
|
As you have probably seen on the dashboard you can β¦
3.10
itertools
OrderedDict
|
|
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 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 78. Find programmers with common languages
|
|
Similar as last Bite we do another comparison of sequences β¦
3.10
set
set operations
|
|
Bite 95. Subclass the dict built-in
|
|
In this Bite you will subclass the dict built-in to β¦
3.10
classes
inheritance
|
|
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
|
|
Newbie Bite 13. dict data retrieval methods
|
|
Excellent! We know what a dict is and what it β¦
3.10
newbie
|
|
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 308. Calculate the median from a dictionary
|
|
You are in charge of a program that continuously collects β¦
3.10
median
sorting
sum
|
|
Bite 329. Convert dict keys to snake case
|
|
In this Bite we will take a (nested) dict and β¦
3.10
algorithms
recursion
string manipulation
|
|