Skip to content

edaaydinea/AutomateTheBoringWithPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Automate the Boring Stuff with Python

Welcome to the repository for Automate the Boring Stuff with Python by Al Sweigart! This repository contains notes, summaries, and exercise solutions to help you understand and apply the concepts presented in the book.

πŸ“– Overview

  • Author: Al Sweigart
  • Published: 2014
  • Description: This book teaches practical programming for total beginners. It covers a range of tasks that can be automated using Python, from simple file handling to web scraping and automation of everyday tasks.

πŸ“ Notes

This section contains organized notes from the book, summarizing key concepts and important points.

Chapter 1: Python Basics

  • hello.py: A simple Python script that prints "Hello, world!" to the console.

Chapter 2: Flow Control

  • vampire.py: A Python script that demonstrates the use of flow control statements (if, elif, else).
  • blocks.py: A Python script that shows how code blocks are defined using indentation.
  • vampire2.py: A Python script that demonstrates the use of nested if statements.
  • littlekid.py: A Python script that uses the and and or operators in if statements.
  • yourName.py: A Python script that demonstrates the use of while loops.
  • yourName2.py: A Python script that uses the break statement to exit a loop.
  • howManyGuests.py: A Python script that uses the continue statement to skip an iteration in a loop.
  • helloJoe.py: A Python script that demonstrates the use of for loops.
  • fivetimesfor.py: A Python script that uses a for loop to print a message five times.
  • fivetimeswhile.py: A Python script that uses a while loop to print a message five times.
  • printrandom.py: A Python script that demonstrates the use of the random module.
  • guessTheNumber.py: A Python script that implements a simple number guessing game.
  • rockPaperScissors.py: A Python script that implements a simple rock-paper-scissors game.

Chapter 3: Functions

  • helloFunc.py: A Python script that defines a simple function.
  • helloFunc2.py: A Python script that demonstrates the use of function arguments.
  • magic8Ball.py: A Python script that implements a magic 8-ball game using functions.
  • abcdCallStack.py: A Python script that demonstrates the call stack when functions are called.
  • otherlocalscopes.py: A Python script that shows how local scopes work in functions.
  • readglobal.py: A Python script that demonstrates how global variables can be read from within a function.
  • localGlobalSameName.py: A Python script that shows how local and global variables with the same name are treated.
  • globalStatement.py: A Python script that demonstrates the use of the global statement.
  • sameNameLocalGlobal.py: A Python script that shows how local and global variables with the same name are treated when the global statement is used.
  • sameNameError.py: A Python script that demonstrates the error that occurs when a local and global variable have the same name and the global statement is not used.
  • zeroDivide.py: A Python script that demonstrates the error that occurs when dividing by zero.
  • tryExceptZeroDivide.py: A Python script that uses a try and except block to handle the error that occurs when dividing by zero.
  • zigzag.py: A Python script that implements a zigzag pattern using functions.

Chapter 4: Lists

  • allMyCats1.py: A Python script that demonstrates the use of lists.
  • allMyCats2.py: A Python script that demonstrates the use of lists and loops.
  • mypets.py: A Python script that demonstrates the use of lists and the in operator.
  • magic8ball2.py: A Python script that implements a magic 8-ball game using lists.
  • passingReference.py: A Python script that demonstrates how lists are passed by reference.
  • conway.py: A Python script that implements Conway's Game of Life using lists.
  • commaCode.py: A Python script that converts a list to a comma-separated string.
  • coinFlipStreaks.py: A Python script that simulates coin flips and checks for streaks.
  • characterPictureGrid.py: A Python script that rotates a 2D list by 90 degrees.

Chapter 5: Dictionaries and Structuring Data

Chapter 6: Manipulating Strings

Chapter 7: Pattern Matching with Regular Expressions

Chapter 8: Input Validation

Chapter 9: Reading and Writing Files

Chapter 10: Organizing Files

Chapter 11: Debugging

Chapter 12: Web Scraping

Chapter 13: Working with Excel Spreadsheets

Chapter 15: Working with PDF and Word Documents

Chapter 16: Working with CSV Files and JSON Data

Chapter 17: Keeping Time, Scheduling Tasks, and Launching Programs

Chapter 19: Manipulating Images

πŸ’‘ Exercise Solutions

This section includes solutions to exercises from the book, organized by chapter.

🀝 Contributing

Contributions are welcome! If you have any additional notes, solutions, or resources to share, please create a pull request.

  1. Fork the repository.
  2. Create a new branch (e.g., addition).
  3. Make your changes.
  4. Submit a pull request.

πŸ“„ License

This repository is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published