My project solutions for the Automate the Boring Stuff in Python book by Al Sweigart.
-
Chapter 2 - Flow Control:
- Chapter's programs:
guess_the_number.py
: number guessing game.rps_game.py
: rock, paper, scissors game.
- No projects
- Chapter's programs:
-
Chapter 3 - Functions:
- Chapter's programs:
zigzag.py
: prints a zig zag pattern.
- Chapter's projects:
collatz.py
: prints the collatz sequence starting from some number.
- Chapter's programs:
-
Chapter 4 - Lists:
- Chapter's projects:
comma_code.py
: prints a string representation out of a list of objects.coin_flip_streaks.py
: finds out how often a streak of six heads or six tails comes up.char_picture_grid.py
: prints a picture from a multi-dimensional list of single characters.
- Chapter's projects:
-
Chapter 5 - Dictionaries:
- Chapter's projects:
chess_dic_validator.py
: validates the names and positions of pieces on a chess board.inventory.py
: basic game inventory management using a dictionary.
- Chapter's projects:
-
Chapter 6 - Manipulating Strings:
- Chapter's programs:
bullet_point_adder.py
: adds bullet points to a list of items in the clipboard.mclip.py
: takes a keyphrase as argument and stores the longer message equivalent into the clipboard.piglat.py
: converts a message to pig latin.
- Chapter's projects:
table_printer.py
: prints a properly aligned table from a list of lists.
- Chapter's programs:
-
Chapter 7 - Pattern Matching with Regular Expressions:
- Chapter's programs:
phone_and_email.py
: matches phone numbers and emails.
- Chapter's projects:
date_detection.py
: validates dates based on regex.strong_password.py
: checks if a password is strong based on various criteria.regex_strip.py
: a regex version of the str strip method.
- Chapter's programs:
-
Chapter 8 - Input Validation:
- Chapter's projects:
sandwich_maker.py
: validates user input using pyinputplus lib.mult_quiz.py
: multiplication quiz example without using the pyinputplus lib.
- Chapter's projects:
-
Chapter 9 - Reading and Writing Files:
- Chapter's projects:
mcb.py
: save clipboard entries in a python shelf file.mad_libs.py
: substitute placeholder words in a file by user supplied values.re_search.py
: works like grep. searches a folder for files that match a regex pattern.
- Chapter's projects:
-
Chapter 10 - Organizing Files:
- Chapter's projects:
selective_copy.py
: copy files of some extension to another dir.delete_unneeded.py
: show large files (>100mb) inside a dir tree.fill_gaps.py
: remove gaps in numbers from filenames by renaming them.
- Chapter's projects:
-
Chapter 11 - Debugging:
- Chapter's projects:
coin_toss.py
: coin toss program.
- Chapter's projects:
-
Chapter 12 - Web Scraping:
- Chapter's programs:
searchpypi.py
: open search results from pypi.map_it.py
: search for a location on google maps.download_xkcd.py
: download xkcd comics.
- Chapter's projects:
cli_email.py
: send an email from the command line using selenium.2048.py
: play the 2048 game by sending arrow keys using selenium.link_verify.py
: verify the links on a web page by checking their status codes.
- Chapter's programs: