go back  What to code next?

Bite Level Description & Tags
Bite 91. Matching multiple strings Beginner level Catching up after #PyCon2018 ... in this Bite you do …
3.10 all any string matching
Bite 50. Make a little PyBites search engine (feedparser) Advanced level Complete the program below to create a little search command …
3.10 any feedparser list comprehensions namedtuple search
Bite 20. Write a context manager Advanced level 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 Intermediate level 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 Beginner level Here is a beginner Bite to write Fizz Buzz: Fizz …
3.10 fizzbuzz
Bite 75. Parse Unix cal to a weekday mapping Advanced level In the last bite we return the weekday from a …
3.10 re Unix zip
Bite 76. The singledispatch countdown challenge Advanced level 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) Beginner level Complete the function below simulating Unix' tail, for example: $ …
3.10 file processing slicing strip Unix
Intro Bite 05. Slice and dice Intro level 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 Intro level 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 Beginner level Check red blood cell compatibility between donor and recipient. For …
3.10 enum exception handling multi type input
Bite 141. Primitive date format inferrer Intermediate level 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 Beginner level In this Bite you are presented with 3 dictionaries. Complete …
3.10 collections dict
Bite 145. Record Breakers Advanced level The data for this challenge comes from a subset of …
3.10 csv data analysis pandas
Bite 151. Contemporary Composers Intermediate level You are given a list of operas and a list …
3.10 datetime dict exception handling generators namedtuple
Bite 159. Create a simple calculator Intermediate level In this Bite you will create a simple calculator. It …
3.10 exception handling numbers operator
Bite 160. 15-way Rock Paper Scissors Advanced level In this Bite you are going to write a 15-way …
3.10 csv dict exception handling games
Bite 192. Some logging practice Beginner level You are to flesh out the log_it() function so that …
3.10 callable logging
Bite 220. Analysing @pythonbytes RSS feed Advanced level 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 Intermediate level Each file and directory in Unix has its permissions broken …
3.10 dict list comprehensions string manipulation
Bite 229. Scrape best programming books Advanced level 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 Intermediate level We love it when CLI or web apps take the …
3.10 difflib files pathlib
Bite 238. Write tests for Fibonacci Beginner level Our first Test Bite! The concept is simple: to pass …
3.7 fibonacci freebie pytest
Bite 249. Test a movie DB class Advanced level 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 Beginner level In Bite 251 we looked at creating some simple pandas …
3.10 numpy pandas series slicing type hinting
Bite 253. More Pandas Series Practice Intermediate level In Bite 251 and Bite 252 we looked at creating …
3.10 math pandas series statistics
Bite 264. Clamy Fernet Intermediate level 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? Advanced level 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 Advanced level Inspired by the movie Transformer, John decides to design a …
3.10 algorithms numbers
Bite 274. Number conversion problem Intermediate level Recursion in computer science is a method of solving a …
3.10 algorithms numbers recursion
Bite 278. Major and minor numbers Beginner level You are given a list of integers. Write code to …
3.10 collections max min numbers
Bite 279. Armstrong numbers Beginner level In number theory there are many interesting numbers - eg. …
3.10 algorithms numbers
Bite 285. Nested List Extraction Intermediate level Sometimes dealing with data can be a real struggle. Sometimes …
3.10 data structures string parsing
Bite 290. Class Rosters Data Conversion Intermediate level You have been given a comma-delimited .csv file containing class …
3.10 csv string parsing tuple unpacking
Bite 299. Base converter Intermediate level For this challenge, you are going to have write a …
3.10 base exception handling
Bite 305. Split once, delimit many Intermediate level Write a function that accepts a string and splits the …
3.10 looping split string parsing
Bite 306. Translate coding sequences to proteins Intermediate level Genes can be converted (translated) to proteins using a three base …
3.8 bioinformatics biopython
Bite 307. SQLite3 introduction Intermediate level In this Bite, you are going to get some practice …
3.10 databases SQL sqlite3
Bite 311. Cleaning text with pandas Intermediate level We recently published a blog post about how to approach …
3.8 data cleaning pandas TF-IDF
Bite 312. Scoring objects Intermediate level In this Bite you are going to score objects: Object …
3.10 builtins importlib keyword typing
Bite 327. AST visitor Advanced level In Bite 312 we learned how to identify builtin functions, …
3.10 AST
Bite 334. Simple TCP client Intermediate level 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) Advanced level Up to this point anyone can modify food entries in …
3.10 FastAPI freebie
Bite 350. Learn to handle cron schedule expressions Advanced level Let your mind wander and tell us what you think …
3.10 crontab dataclasses datetime exception handling iteration
Bite 363. Movie Theater (Refactoring) Intermediate level 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 Intermediate level Lorem Ipsum is text used to demonstrate layout in documents …
3.10 beautifulsoup list comprehensions random regular expressions requests
Bite 372. Validate Pangram Beginner level A pangram, according to the Oxford English Dictionary, is a …
algorithms hashing string strings
Bite 374. Group Anagrams Intermediate level As defined by the OED, an anagram is a word, …
array defaultdict strings
Bite 375. Find All Letter Combinations of a Phone Number Intermediate level The typical phone keypad (pictured) features numbers (0 - 9), …
backtracking itertools strings
Bite 378. Organizational Chart Advanced level Of all the types of questions you are likely to …
binary tree depth-first search graph traversal
Bite 379. Hedge Maze Advanced level Imagine you're trapped in a mysterious maze, much like the …
breadth-first graph traversal maze