Pybites Logo

Intermediate Bite Exercises

The bread and butter of the Pybites Platform, these Regular Bite Exercises will keep you challenged for quite some time.

Don't be disheartened if you get stuck. These are real world exercises that are designed to push you. If you find yourself absolutely stuck, feel free to post in our Community and ask for help.

Level Name Tags
Intermediate Word values sum Scrabble max
Intermediate Top 10 pybites tags xml Counter
Intermediate Pybites die hard generators file processing Counter namedtuple
Intermediate Parsing dates from logs file processing datetime 100days
Intermediate Palindromes reverse list comprehensions algorithms max
Intermediate Practice exceptions exception handling raise
Intermediate Write a user validation function exception handling classes namedtuple
Intermediate Convert dict to namedtuple/json json dict namedtuple
Intermediate Generate a table of n sequences generators zip
Intermediate Form teams from a group of friends itertools 100days
Intermediate Find the most common word data analysis Counter list comprehensions
Intermediate Write a decorator with argument decorators 100days
Intermediate No promo twice, keep state in a class exception handling properties classes
Intermediate Parse omdb movie json data movie data json APIs glob
Intermediate Converting date strings to datetimes datetime findall Counter
Intermediate Movie data analysis data analysis mean defaultdict movie data sorting namedtuple
Intermediate Transpose a data structure zip dict
Intermediate Having fun with heapq datetime heapq
Intermediate Having fun with *args and **kwargs args function arguments kwargs
Intermediate Calculate the total duration of a course datetime numbers findall timedelta
Intermediate Write a login_required decorator decorators functools
Intermediate Write a new password field validator string module re
Intermediate Make a bar chart of new safari books data analysis bar chart
Intermediate Scrape packt's html with beautifulsoup beautifulsoup requests namedtuple
Intermediate When does python 2 die on planet miller? datetime
Intermediate Create a simple calculator that receives command line arguments reduce argparse functools
Intermediate Create a multiplication table class of variable length exception handling numbers dunder methods classes
Intermediate Create a deck of uno cards namedtuple list list comprehensions
Intermediate Data structures matter - speed up your python code performance data structures
Intermediate Get all valid dictionary words for a draw of letters itertools set Scrabble 100days
Intermediate Create your own iterator iterators random
Intermediate Keep state in a class + make its instance callable dunder methods classes
Intermediate Retrieve the right ninja belt based on score OrderedDict itertools
Intermediate Organize a meeting between timezones timezones zoneinfo
Intermediate Find programmers with common languages set set operations
Intermediate Parse a csv file and create a bar chart bar chart requests csv community
Intermediate Filter and order tweets by polarity values TextBlob Twitter namedtuple
Intermediate Define a score enum and customize it adding methods classmethod enum __str__
Intermediate Flatten lists recursively (droste bite) recursion list
Intermediate Create a rgb-to-hex converter string formatting
Intermediate Convert decimal to roman numerals OrderedDict numbers
Intermediate Playing with lists and dicts data structures list dict 100days
Intermediate What south park characters talk most? data analysis Counter requests csv defaultdict
Intermediate Humanize a datetime datetime namedtuple
Intermediate Subclass the dict built-in classes inheritance dunder methods
Intermediate Beautifulsoup ii - scrape us holidays beautifulsoup dict defaultdict
Intermediate Write an infinite sequence generator generators itertools string module zip
Intermediate Use the ipinfo api to lookup ip country mock.patch json requests APIs
Intermediate Filter words with non-ascii characters ascii all ord unicode
Intermediate Implement a color class with staticmethod __repr__ hex string module staticmethod __str__
Intermediate List and filter files in a directory generators glob os module
Intermediate List exercise: return first occurrence indices of duplicated words counting set list comprehensions
Intermediate Xmas tree generator range string formatting default args join
Intermediate Write a numbers validation decorator decorators
Intermediate Check if two words are anagrams string matching anagram
Intermediate Find the user with most friends sorting looping tuples defaultdict
Intermediate Get the most recommended books default args beautifulsoup Counter list comprehensions requests
Intermediate Return the right ordinal suffix for a number modulo numbers string manipulation dict
Intermediate Analyze stock data counting data analysis string manipulation requests json sorting
Intermediate Find the word with the most vowels lambda string matching counting list comprehensions
Intermediate Sort a list of book objects lambda operator datetime attrgetter list sorting namedtuple
Intermediate Gourmets' nightmare operator sorting intersection Counter
Intermediate Oop fun at the zoo classmethod itertools classes __str__
Intermediate Pybites first pandas bite data analysis csv pandas
Intermediate Primitive date format inferrer classmethod datetime exception handling enum
Intermediate Exception handling: calculate the winning player exception handling numbers namedtuple
Intermediate Calculate the number of months passed datetime exception handling dateutil
Intermediate Rhombus generator string formatting format f-strings
Intermediate 100 weekdays of code date range datetime dateutil
Intermediate Print car data grouped by manufacturer operator data structures itertools sorting
Intermediate Turn messy csv into json re string manipulation csv pandas json
Intermediate Contemporary composers exception handling generators datetime dict namedtuple
Intermediate Write your own data class data structures type hinting dataclasses hashable sorting
Intermediate Split a string by spaces or quoted text string manipulation split
Intermediate Make an index of story characters enumerate string matching collections defaultdict sorting
Intermediate Filter out accented characters string matching unicode
Intermediate Create a simple calculator operator exception handling numbers
Intermediate Vertically align output of counters string formatting
Intermediate Which packages were upgraded? comparison numbers string manipulation dict
Intermediate Complete a tox ini file parser class configparser tox properties classes string parsing string matching
Intermediate Set up future notifications datetime timedelta findall f-strings
Intermediate Find missing dates datetime pandas dateutil
Intermediate Parse pybites blog git commit log string parsing data analysis Counter datetime dateutil
Intermediate Parse a bunch of quotes from html string manipulation regular expressions string parsing dict
Intermediate Analyze some bite stats data data analysis set csv Counter
Intermediate Create a simple spelling suggester SequenceMatcher string matching difflib
Intermediate Calculate number of books to have read at date ... datetime exception handling dateutil
Intermediate Actor/actress age at movie release dataclasses f-strings dateutil
Intermediate Parse income distribution from latin america xml xml data analysis defaultdict
Intermediate Starwars character with highest bmi operator string manipulation tuple unpacking max
Intermediate Most upvoted stackoverflow python questions beautifulsoup string matching web scraping requests sorting
Intermediate Add caching to a fibonacci function performance fibonacci cache functools
Intermediate Analyze nba data with sqlite3 databases data analysis SQL sqlite3
Intermediate What date is mother's day celebrated? datetime dateutil
Intermediate Multiple inheritance (__mro__) multiple inheritance __mro__ classes inheritance
Intermediate Call a cisco nexus 9k device networking requests
Intermediate Analyze some bite stats data - part ii data analysis sorting csv
Intermediate Add type hints to a class dataclasses type hinting classes
Intermediate Female speakers @ pycon us beautifulsoup counting gender_guesser data wrangling
Intermediate Calculate and evenly split the bill Decimal rounding numbers
Intermediate Suppressing exceptions context managers exception handling
Intermediate Capture stdout context managers StringIO
Intermediate Bite notification planner generators datetime
Intermediate Parse best selling lists using the ny times api json mock requests APIs
Intermediate Split an iterable in groups of size n generators iterators itertools looping
Intermediate Unix file permissions string manipulation dict list comprehensions
Intermediate Get top titles from news.python.sc string parsing beautifulsoup news web scraping requests sorting namedtuple
Intermediate Convert warcraft json data to csv json exception handling csv
Intermediate Create a gravatar url string formatting hashlib gravatar
Intermediate Thumbs up for operator overloading exception handling classes emojis dunder methods operator overloading
Intermediate Analyze gold prices comparison string parsing data analysis looping pandas sorting
Intermediate Make a zipfile of the latest log files pathlib datetime zipfile os module
Intermediate Capitalize sentences string matching string manipulation regular expressions string parsing
Intermediate Which bite has the fastest tests? sorting string parsing type casting
Intermediate User experience matters! suggest matching files pathlib files difflib
Intermediate Test fizzbuzz fizzbuzz pytest
Intermediate Test code that parses json and ip ranges dataclasses ipaddress json pytest
Intermediate Make mutpy's output more digestible data wrangling string parsing looping string matching mutpy
Intermediate Xmas tree 2.0 string formatting range
Intermediate Mocking a standard library function pytest random mock.patch
Intermediate More pandas series practice math series statistics pandas
Intermediate Codon usage bioinformatics textwrap collections
Intermediate Scrape pycon events beautifulsoup data analysis web scraping requests pycon json namedtuple
Intermediate What the flux? math finance pandas
Intermediate Reverse complement bioinformatics translate string manipulation
Intermediate Visit all pycons in europe math dataclasses itertools data analysis
Intermediate Count the number of islands in a grid looping algorithms string
Intermediate Clamy fernet typing encryption fernet cryptography dataclasses encode
Intermediate Optimal fund raising math looping algorithms
Intermediate Measure the size of an island math looping algorithms
Intermediate Get all class names from a module inspect list comprehensions
Intermediate Find common words string matching algorithms set operations
Intermediate Number conversion problem numbers recursion algorithms
Intermediate Get the most common email domains string parsing Counter web scraping set requests
Intermediate Pascal triangle Pascal algorithms
Intermediate Nested list extraction data structures string parsing
Intermediate Decompress string manipulation recursion
Intermediate Sum indices sum looping
Intermediate Class rosters data conversion csv string parsing tuple unpacking
Intermediate Find the fastest speech string manipulation datetime sorting
Intermediate Jagged list iteration itertools list
Intermediate Fasta to 2-line fasta bioinformatics biopython
Intermediate Base converter exception handling base
Intermediate Exchange rates datetime sorting dict
Intermediate Get and write all code from a json file file processing json string manipulation filecmp
Intermediate Most identical letters in a word string matching casefold Counter max
Intermediate Split once, delimit many looping split string parsing
Intermediate Translate coding sequences to proteins bioinformatics biopython
Intermediate Sqlite3 introduction databases SQL sqlite3
Intermediate Calculate the median from a dictionary sum sorting median
Intermediate A simple document class properties classes annotations string method chaining
Intermediate Scoring objects typing builtins keyword importlib
Intermediate Alternative constructors classmethod classes
Intermediate More logging practice logging exception handling
Intermediate To rent or to stream movies? typing datetime collections dict
Intermediate Sortable dataclasses and enums dataclasses sorting dunder methods enum
Intermediate Floating point arithmetic floats rounding numbers arithmetic
Intermediate Abstract syntax tree (ast) printer AST
Intermediate Searching for an apartment algorithms
Intermediate Simple tcp client hashlib TCP/IP client socket multiprocessing secrets networking
Intermediate Async http client asyncio networking aiohttp client
Intermediate Create food objects FastAPI
Intermediate Retrieve food objects FastAPI
Intermediate Update and delete food objects FastAPI
Intermediate Pydantic part ii Pydantic FastAPI
Intermediate Food logging crud FastAPI
Intermediate Fastapi exception handling FastAPI
Intermediate Return an html response FastAPI
Intermediate Citation indexes typing exception handling builtins
Intermediate Writing better spanish ascii unicode dict unicodedata
Intermediate Get spelling suggestions typing TextBlob comparison tuple unpacking namedtuple
Intermediate Hash sql statements hashlib SQL
Intermediate When to use command line option (cli) options and when cli arguments? Typer command line
Intermediate Using typer callbacks to create command line interface (cli) parameters Typer command line
Intermediate Rich excursion - create beautiful tables Typer rich command line
Intermediate Add a password prompt to your command line interface (cli) Typer command line
Intermediate Movie theater (refactoring) clean code refactoring
Intermediate Create wikipedia lorem ipsum text regular expressions beautifulsoup list comprehensions random requests
Intermediate Rolling two dice for an advantage math itertools mean
Intermediate Goal tracker datetime date tuple unpacking
Intermediate Add pi day to the calendar calendar tuple unpacking
Intermediate Group anagrams array strings defaultdict
Intermediate Find all letter combinations of a phone number backtracking itertools strings
Intermediate Coins on the table math
Intermediate String to Index Index-based encoding range generation string manipulation
Intermediate Implement the Repository Pattern for a Book Library Repository Pattern SQLModel csv sqlite3 design patterns files
Intermediate Unix Tail Part II - Make it Faster! file processing performance bytes looping
Intermediate Many-to-Many Relationships SQLModel Many-to-Many Link Tables ORM sqlite3
Intermediate Advanced Link Table Relationships SQLModel ORM sqlite3 Link Tables Complex Queries
Intermediate Model Inheritance and API Schemas Model Inheritance SQLModel API Schemas Pydantic