Bite 91. Matching multiple strings
|
|
Catching up after #PyCon2018 ... in this Bite you do …
3.10
all
any
string matching
|
|
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 20. Write a context manager
|
|
Write a context manager to roll back a transaction on …
3.10
context managers
dunder methods
operator overloading
with statement
|
|
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 46. You are a programmer! Code Fizz Buzz
|
|
Here is a beginner Bite to write Fizz Buzz: Fizz …
3.10
fizzbuzz
|
|
Bite 75. Parse Unix cal to a weekday mapping
|
|
In the last bite we return the weekday from a …
3.10
re
Unix
zip
|
|
Bite 76. The singledispatch countdown challenge
|
|
We are stoked and grateful to have Martin have you …
3.10
decorators
functools
singledispatch
|
|
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
|
|
Intro Bite 05. Slice and dice
|
|
Take the block of text provided and strip off the …
3.10
freebie
replace
slicing
split
string module
strip
|
|
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 136. Bloodtypes
|
|
Check red blood cell compatibility between donor and recipient. For …
3.10
enum
exception handling
multi type input
|
|
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 143. Look up a value in 3 dictionaries
|
|
In this Bite you are presented with 3 dictionaries. Complete …
3.10
collections
dict
|
|
Bite 145. Record Breakers
|
|
The data for this challenge comes from a subset of …
3.10
csv
data analysis
pandas
|
|
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 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 192. Some logging practice
|
|
You are to flesh out the log_it() function so that …
3.10
callable
logging
|
|
Bite 220. Analysing @pythonbytes RSS feed
|
|
Another feedparser exercise! In this Bite we're going to analyze …
3.10
classes
Counter
feedparser
max
min
namedtuple
regular expressions
string matching
type hinting
|
|
Bite 223. Unix file permissions
|
|
Each file and directory in Unix has its permissions broken …
3.10
dict
list comprehensions
string manipulation
|
|
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 236. User experience matters! Suggest matching files
|
|
We love it when CLI or web apps take the …
3.10
difflib
files
pathlib
|
|
Bite 238. Write tests for Fibonacci
|
|
Our first Test Bite! The concept is simple: to pass …
3.7
fibonacci
freebie
pytest
|
|
Bite 249. Test a movie DB class
|
|
Time for fixtures, one of pytest's killer features or as …
3.7
classes
fixtures
movie data
pytest
SQL
sqlite3
|
|
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 253. More Pandas Series Practice
|
|
In Bite 251 and Bite 252 we looked at creating …
3.10
math
pandas
series
statistics
|
|
Bite 264. Clamy Fernet
|
|
In this bite, you are going to get familiar with …
3.8
cryptography
dataclasses
encode
encryption
fernet
typing
|
|
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 268. Number Transformers
|
|
Inspired by the movie Transformer, John decides to design a …
3.10
algorithms
numbers
|
|
Bite 274. Number conversion problem
|
|
Recursion in computer science is a method of solving a …
3.10
algorithms
numbers
recursion
|
|
Bite 278. Major and minor numbers
|
|
You are given a list of integers. Write code to …
3.10
collections
max
min
numbers
|
|
Bite 279. Armstrong numbers
|
|
In number theory there are many interesting numbers - eg. …
3.10
algorithms
numbers
|
|
Bite 285. Nested List Extraction
|
|
Sometimes dealing with data can be a real struggle. Sometimes …
3.10
data structures
string parsing
|
|
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 299. Base converter
|
|
For this challenge, you are going to have write a …
3.10
base
exception handling
|
|
Bite 305. Split once, delimit many
|
|
Write a function that accepts a string and splits the …
3.10
looping
split
string parsing
|
|
Bite 306. Translate coding sequences to proteins
|
|
Genes can be converted (translated) to proteins using a three base …
3.8
bioinformatics
biopython
|
|
Bite 307. SQLite3 introduction
|
|
In this Bite, you are going to get some practice …
3.10
databases
SQL
sqlite3
|
|
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 327. AST visitor
|
|
In Bite 312 we learned how to identify builtin functions, …
3.10
AST
|
|
Bite 334. Simple TCP client
|
|
Your job is to write a simple TCP/IP client which …
3.10
client
hashlib
multiprocessing
networking
secrets
socket
TCP/IP
|
|
Bite 345. FastAPI Authentication with JWT (JSON Web Tokens)
|
|
Up to this point anyone can modify food entries in …
3.10
FastAPI
freebie
|
|
Bite 350. Learn to handle cron schedule expressions
|
|
Let your mind wander and tell us what you think …
3.10
crontab
dataclasses
datetime
exception handling
iteration
|
|
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 372. Validate Pangram
|
|
A pangram, according to the Oxford English Dictionary, is a …
algorithms
hashing
string
strings
|
|
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
|
|
Newbie Bite 27. Failing Tests
|
|
As you continue your coding journey on our platform, it's …
3.10
debugging
newbie
pytest
testing
|
|
Newbie Bite 50. Read The Docs
|
|
In this Bite, you'll practice reading and using Python's official …
3.10
collections
counter
documentation
newbie
reading docs
|
|