go back  What to code next?

Bite Level Description & Tags
Bite 209. Write a Sphinx docstring Beginner level Your team uses Sphinx and wants you to comply with …
data types docstring sphinx
Bite 101. f-strings and a simple if/else Intro level The latest way to print to the screen in Python …
f-strings if/else
Bite 146. Rhombus generator Intermediate level In this Bite you make a generator of rhombus shapes. …
format f-strings string formatting
Bite 167. Complete a User class: properties and representation dunder methods Beginner level In this Bite you are presented with another class, User …
classes dunder methods f-strings properties __repr__ __str__ string manipulation
Bite 173. Set up future notifications Intermediate level Let's do another datetime processing Bite. Complete add_todo below that …
datetime findall f-strings timedelta
Bite 187. Actor/actress age at movie release Intermediate level Ever wondered how old an actor/actress was in a particular …
dataclasses dateutil f-strings
Bite 263. Count the number of islands in a grid Intermediate level You are tasked with counting the amount of islands in …
algorithms looping string
Bite 15. Enumerate 2 sequences Beginner level Iterate over the given names and countries lists, printing them …
enumerate string formatting
Bite 86. Create a RGB-to-Hex converter Intermediate level Designer Mary wants to convert her CSS from statements like …
string formatting
Bite 119. Xmas tree generator Intermediate level In this Bite you complete generate_xmas_tree that takes a rows …
default args join range string formatting
Bite 162. Vertically align output of counters Intermediate level In this Bite you are tasked with "physically" aligning the …
string formatting
Bite 164. CLI tool: HTML link converter (stdin to stdout) Advanced level In this Bite you are going to help your team …
data wrangling exception handling html stdin string formatting string manipulation sys
Bite 174. String manipulation and metrics Advanced level This bite will get you to play around with creating …
Counter dataclasses list comprehensions properties string formatting string manipulation translate
Bite 228. Create a Gravatar URL Intermediate level In this Bite you will generate a Gravatar URL, e.g. …
gravatar hashlib string formatting
Bite 245. Xmas Tree 2.0 Intermediate level In this Bite you have to complete generate_improved_xmas_tree that takes …
range string formatting
Bite 266. Composition, Inheritance, Abstract Base Class, what? Advanced level It’s not as bad as that sounds, really. If you …
ABCs abstractmethod beautifulsoup composition dataclasses inheritance namedtuple string formatting typing urllib web scraping
Bite 217. Capture stdout Intermediate level Sometimes you need to capture stdout in your script. Python …
context managers StringIO
Bite 68. Remove punctuation characters from a string Beginner level Complete remove_punctuation which receives an input string and strips out …
string manipulation string module
Bite 53. Convert text into multiple columns Advanced level You run a news site and you got feedback that …
string manipulation
Bite 54. Nicer formatting of a poem or text Beginner level In this Bite you complete print_hanging_indents to print a poem …
string manipulation textwrap
Bite 106. Strip out vowels and count the number of replacements Intro level In this Bite we'd like you to loop over the …
counting regular expressions replace string manipulation Zen of Python
Bite 109. Workout dict lookups and raising an exception Intro level In this Bite you learn how to lookup values from …
dict exception handling format string manipulation ternary
Bite 112. Social Media Username Validator Advanced level In this Bite you parse social_platforms below into a dict …
namedtuple range re regular expressions string manipulation string matching typing
Bite 127. Return the right ordinal suffix for a number Intermediate level In this Bite you complete a function that takes an …
dict modulo numbers string manipulation
Bite 129. Analyze Stock Data Intermediate level In this Bite we will answer some questions about stocks, …
counting data analysis json requests sorting string manipulation
Bite 131. Screen scraper Advanced level This is the output from using screenFetch on my junky …
dict index regular expressions slicing string manipulation
Bite 133. Convert an Amazon URL into an affiliation link Beginner level Can you help PyBites automate their Amazon affiliation link creation?Complete …
regular expressions string manipulation
Bite 139. Calculate a coding streak in days Advanced level In this Bite you are going to calculate the amount …
datetime string manipulation timedelta
Bite 149. Sorting words with constraint Beginner level Here is a list of words Jacob is trying to …
lambda sorting string manipulation
Bite 150. Turn messy CSV into JSON Intermediate level At the 1 year mark of our platform here is …
csv json pandas re string manipulation
Bite 152. Manipulate string decorator Advanced level Write a decorator called strip_range that replaces characters with dots. …
decorators kwargs list string manipulation
Bite 155. Split a string by spaces or quoted text Intermediate level Another text manipulation Bite. Code split_words_and_quoted_text that takes a text …
split string manipulation
Bite 163. Which packages were upgraded? Intermediate level In this Bite you compare a list of packages (aka …
comparison dict numbers string manipulation
Bite 165. Parse an /etc/passwd file output Beginner level The /etc/passwd file is a text-based database of information about …
split string manipulation tuple unpacking
Bite 182. Parse a bunch of quotes from HTML Intermediate level Let's get some inspiration. Below you find the simplified HTML …
dict regular expressions string manipulation string parsing
Bite 191. Starwars character with highest BMI Intermediate level In this Bite you will parse a multiline string of …
max operator string manipulation tuple unpacking
Newbie Bite 8. String Manipulation There are times you'll need to manipulate the strings you've …
newbie string manipulation
Bite 223. Unix file permissions Intermediate level Each file and directory in Unix has its permissions broken …
dict list comprehensions string manipulation
Bite 224. Get sentences from a text Advanced level Here is another fun regex exercise for you: it's easy …
data wrangling regular expressions string manipulation
Bite 225. Swap case PyBites characters Beginner level In this Bite you will swap case all pybites characters …
looping string manipulation string parsing
Bite 234. Capitalize sentences Intermediate level In this Bite you are going to capitalize sentences in …
regular expressions string manipulation string matching string parsing
Bite 250. PyBites URL Shortener Advanced level URL shortening is a technique on the World Wide Web …
decode dict encode string manipulation string module type hinting
Bite 259. Reverse complement Intermediate level In the majority of organisms, the genetic code is encoded …
bioinformatics string manipulation translate
Bite 91. Matching multiple strings Beginner level Catching up after #PyCon2018 ... in this Bite you do …
all any string matching
Bite 115. Count leading spaces Beginner level A small but interesting Bite: given a string with leading …
counting string matching
Bite 121. Determine the strength of a password Advanced level In this Bite you evaluate the strength of a password. …
re string matching
Bite 122. Check if two words are anagrams Intermediate level An anagram is a word or phrase formed by rearranging …
anagram string matching
Bite 132. Find the word with the most vowels Intermediate level Finish the get_word_max_vowels function below that takes a text string …
counting lambda list comprehensions string matching
Bite 156. Make an index of story characters Intermediate level You know the index at the end of a book …
collections defaultdict enumerate sorting string matching
Bite 157. Filter out accented characters Intermediate level Another unicode Bite. Given some non-English text with accents (á, …
string matching unicode
Bite 166. Complete a tox ini file parser class Intermediate level The INI file format is an informal standard for configuration …
classes configparser properties string matching string parsing tox
Bite 185. Create a simple spelling suggester Intermediate level In this Bite you will write a simple spelling corrector. …
difflib SequenceMatcher string matching
Bite 193. Most upvoted StackOverflow Python questions Intermediate level In this Bite you parse a copy of StackOverflow Python …
beautifulsoup requests sorting string matching web scraping
Bite 220. Analysing @pythonbytes RSS feed Advanced level Another feedparser exercise! In this Bite we're going to analyze …
classes Counter feedparser max min namedtuple regular expressions string matching type hinting
Bite 244. Make mutpy's output more digestible Intermediate level Another real world scenario. When we started using MutPy for …
data wrangling looping mutpy string matching string parsing
Bite 272. Find common words Intermediate level Given two sentences that each contains words in case insensitive …
algorithms set operations string matching
Bite 61. Create a variable size Paw Patrol card deck with random actions Advanced level The Paw Patrol card deck consists of 32 cards ranging …
itertools namedtuple random string module
Bite 47. Write a new password field validator Intermediate level You know these Create a new password forms? They do …
re string module
Bite 44. License key generator Beginner level Write a function called gen_key that creates a license key …
list comprehensions secrets string module
Bite 29. Martin's IQ test Beginner level Martin is preparing to pass an IQ test.The most frequent …
enumerate string module
Bite 99. Write an infinite sequence generator Intermediate level Write a generator that produces the sequence [1, 'A', 2, …
generators itertools string module zip
Bite 105. Slice and dice Intro level Take the block of text provided and strip off the …
replace slicing split string module strip
Bite 114. Implement a Color class with staticmethod Intermediate level As the new junior developer, you have been charged with …
hex __repr__ staticmethod __str__ string module
Bite 251. Introducing Pandas Series Beginner level Let's get started with Pandas! In case you are not …
pandas series string module
Bite 178. Parse PyBites blog git commit log Intermediate level In this Bite we want to figure out how active …
Counter data analysis datetime dateutil string parsing
Bite 179. Strip comments from Python code Advanced level In this Bite you will strip off all comments from …
comments regular expressions string parsing
Bite 198. Calculate my Mac's longest uptime Advanced level Given the following output, calculate the longest uptime / time …
data wrangling datetime dateutil string parsing
Bite 226. Get top titles from news.python.sc Intermediate level There is a new Python news aggregator in town! Check …
beautifulsoup namedtuple news requests sorting string parsing web scraping
Bite 232. Analyze gold prices Intermediate level In this Bite you will analyze how the price of …
comparison data analysis looping pandas sorting string parsing
Bite 235. Which Bite has the fastest tests? Intermediate level In this Bite you will parse a pytest output summary, …
sorting string parsing type casting
Bite 257. Extract users dict from a multiline string Beginner level A quick Bite to practice some string parsing extracting a …
dict string parsing
Bite 8. Rotate string characters Beginner level Write a function that rotates characters in a string, in …
deque slicing
Bite 21. Query a nested data structure Beginner level Given the provided cars dictionary:Get all JeepsGet the first car …
data structures dictionary comprehensions list comprehensions sorting
Bite 27. Parse omdb movie json data Intermediate level Working with APIs is very common these days and lucky …
APIs glob json movie data
Bite 28. Converting date strings to datetimes Intermediate level In this Bite you are provided with a list of …
Counter datetime findall
Bite 42. Number Guessing Game Class Advanced level In this Bite you implement a Game class to perform …
classes games random
Bite 75. Parse Unix cal to a weekday mapping Advanced level In the last bite we return the weekday from a …
re Unix zip
Bite 95. Subclass the dict built-in Intermediate level In this Bite you will subclass the dict built-in to …
classes inheritance
Bite 96. Build Unix' wc program in Python Beginner level In this Bite you will convert Unix' wc command into …
file processing tempfile Unix
Bite 128. Work with datetime's strptime and strftime Beginner level In this Bite you get some more practice with datetime's …
datetime strftime strptime
Bite 138. OOP fun at the Zoo Intermediate level Finish the Animal class below adding one or more class …
classes classmethod itertools __str__
Bite 141. Primitive date format inferrer Intermediate level Complete the get_dates method given the following:a listing of date …
classmethod datetime enum exception handling
Bite 159. Create a simple calculator Intermediate level In this Bite you will create a simple calculator. It …
exception handling numbers operator
Bite 169. Simple length converter Beginner level Your task is to complete the convert() function. It's purpose …
exception handling numbers rounding
Bite 199. Multiple inheritance (__mro__) Intermediate level Implement the following class structure: print(Child.__mro__): (<class '__main__.Child'>, <class '__main__.Father'>, …
classes inheritance __mro__ multiple inheritance
Bite 202. Analyze some Bite stats data - part II Intermediate level In this Bite you will analyze complexity levels of our …
csv data analysis sorting
Bite 256. Scrape PyCon events Intermediate level In this Bite, we want you to scrape PyCon 2019 …
beautifulsoup data analysis json namedtuple pycon requests web scraping
Bite 271. Get all class names from a module Intermediate level In this Bite you will write a function to get …
inspect list comprehensions
PCC Title Summary
No matching Challenges found.
We use Python 3.8