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