diff --git a/cheat_sheets/beginners_python_cheat_sheet_all.zip b/cheat_sheets/beginners_python_cheat_sheet_all.zip new file mode 100644 index 0000000..60a1b54 Binary files /dev/null and b/cheat_sheets/beginners_python_cheat_sheet_all.zip differ diff --git a/cheat_sheets/bw_sheets/beginners_python_cheat_sheet_pcc_all_bw.pdf b/cheat_sheets/bw_sheets/beginners_python_cheat_sheet_pcc_all_bw.pdf new file mode 100644 index 0000000..23ea5c2 Binary files /dev/null and b/cheat_sheets/bw_sheets/beginners_python_cheat_sheet_pcc_all_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_bw.pdf new file mode 100644 index 0000000..7721f5c Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_classes_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_classes_bw.pdf new file mode 100644 index 0000000..1a145fd Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_classes_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_dictionaries_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_dictionaries_bw.pdf new file mode 100644 index 0000000..e9bb4aa Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_dictionaries_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_django_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_django_bw.pdf new file mode 100644 index 0000000..94a2131 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_django_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_files_exceptions_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_files_exceptions_bw.pdf new file mode 100644 index 0000000..0578114 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_files_exceptions_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_functions_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_functions_bw.pdf new file mode 100644 index 0000000..5ed8770 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_functions_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_git_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_git_bw.pdf new file mode 100644 index 0000000..312e4c1 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_git_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_if_while_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_if_while_bw.pdf new file mode 100644 index 0000000..1b0d832 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_if_while_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_lists_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_lists_bw.pdf new file mode 100644 index 0000000..138a7c7 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_lists_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_matplotlib_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_matplotlib_bw.pdf new file mode 100644 index 0000000..26d8951 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_matplotlib_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_plotly_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_plotly_bw.pdf new file mode 100644 index 0000000..94fea24 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_plotly_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_pygame_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_pygame_bw.pdf new file mode 100644 index 0000000..fda0b4f Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_pygame_bw.pdf differ diff --git a/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_testing_bw.pdf b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_testing_bw.pdf new file mode 100644 index 0000000..5aeacd8 Binary files /dev/null and b/cheat_sheets/bw_sheets/individual_sheets_bw/beginners_python_cheat_sheet_pcc_testing_bw.pdf differ diff --git a/cheat_sheets/color_sheets/beginners_python_cheat_sheet_pcc_all.pdf b/cheat_sheets/color_sheets/beginners_python_cheat_sheet_pcc_all.pdf new file mode 100644 index 0000000..581aa76 Binary files /dev/null and b/cheat_sheets/color_sheets/beginners_python_cheat_sheet_pcc_all.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc.pdf new file mode 100644 index 0000000..3c14023 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_classes.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_classes.pdf new file mode 100644 index 0000000..34ac950 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_classes.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_dictionaries.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_dictionaries.pdf new file mode 100644 index 0000000..4aa5870 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_dictionaries.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_django.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_django.pdf new file mode 100644 index 0000000..e05b11e Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_django.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_files_exceptions.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_files_exceptions.pdf new file mode 100644 index 0000000..3cf26d9 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_files_exceptions.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_functions.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_functions.pdf new file mode 100644 index 0000000..aa40c4c Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_functions.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_git.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_git.pdf new file mode 100644 index 0000000..c5657d4 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_git.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_if_while.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_if_while.pdf new file mode 100644 index 0000000..6284b51 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_if_while.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_lists.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_lists.pdf new file mode 100644 index 0000000..6a4b33a Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_lists.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_matplotlib.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_matplotlib.pdf new file mode 100644 index 0000000..9c460e4 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_matplotlib.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_plotly.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_plotly.pdf new file mode 100644 index 0000000..958cf04 Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_plotly.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_pygame.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_pygame.pdf new file mode 100644 index 0000000..648df1e Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_pygame.pdf differ diff --git a/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_testing.pdf b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_testing.pdf new file mode 100644 index 0000000..dc5bacc Binary files /dev/null and b/cheat_sheets/color_sheets/individual_sheets_color/beginners_python_cheat_sheet_pcc_testing.pdf differ diff --git a/online_resources_site/docs/cheat_sheets.md b/online_resources_site/docs/cheat_sheets.md new file mode 100644 index 0000000..cc4a05e --- /dev/null +++ b/online_resources_site/docs/cheat_sheets.md @@ -0,0 +1,69 @@ +--- +hide: + - footer +title: Cheat Sheets +--- + +# Cheat Sheets + +Cheat sheets can be really helpful when you’re trying a set of exercises related to a specific topic, or working on a project. Because you can only fit so much information on a single sheet of paper, most cheat sheets are a simple listing of syntax rules. This set of cheat sheets aims to remind you of syntax rules, but also remind you of important concepts as well. + +You can click here and download [all of the sheets in a single document](https://github.com/ehmatthes/pcc_3e/releases/download/v1.0.0/beginners_python_cheat_sheet_pcc_all.pdf). To see a listing of individual sheets available for downloading, including a printer-friendly black and white version, click [here](). + +The full set includes: + +- An overview sheet covering a wide range of topics +- A series of sheets that focus on the fundamentals of Python +- A series of sheets focusing on specific libraries: pytest, Pygame, Matplotlib, Plotly, and Django +- A sheet focusing on Git basics + +These sheets are completely free to use and share. I originally wrote them as a way to support readers of Python Crash Course, but they've proven useful to people working through a wide range of Python learning resources as well. (If you find them useful and want to see more of my writing on Python, check out my ongoing work at [Mostly Python](https://mostlypython.substack.com).) + +--- + +# Individual Sheet Descriptions + +### Overview Sheet + +- Beginner's Python Cheat Sheet + - Provides an overview of the basics of Python including variables, lists, dictionaries, functions, classes, and more. + +### Python Basics + +- Beginner's Python Cheat Sheet - Lists + - Focuses on lists: how to build and modify a list, access elements from a list, and loop through the values in a list. Also covers numerical lists, list comprehensions, tuples, and more. +- Beginner's Python Cheat Sheet - Dictionaries + - Focuses on dictionaries: how to build and modify a dictionary, access the information in a dictionary, and loop through dictionaries in a variety of ways. Includes sections on nesting lists and dictionaries, using dictionary comprehensions, and more. +- Beginner's Python Cheat Sheet - If Statements and While Loops + - Focuses on `if` statements and `while` loops: how to write conditional tests with strings and numerical data, how to write simple and complex if statements, and how to accept user input. Also covers a variety of approaches to using `while` loops. +- Beginner's Python Cheat Sheet - Functions + - Focuses on functions: how to define a function and how to pass information to a function. Covers positional and keyword arguments, return values, passing lists, using modules, and more +- Beginner's Python Cheat Sheet - Classes + - Focuses on classes: how to define and use a class. Covers attributes and methods, inheritance and importing, and more. +- Beginner's Python Cheat Sheet - Files and Exceptions + - Focuses on working with files, and using exceptions to handle errors that might arise as your programs run. Covers reading and writing to files, try-except-else blocks, and storing data using the `json` module. +- Beginner's Python Cheat Sheet - Testing Your Code + - Focuses on unit tests and test cases. How to test a function, and how to test a class. + +## Project-Focused Sheets + +- Beginner's Python Cheat Sheet - Pygame + - Focuses on creating games with Pygame. Creating a game window, rect objects, images, responding to keyboard and mouse input, groups, detecting collisions between game elements, and rendering text +- Beginner's Python Cheat Sheet - Matplotlib + - Focuses on creating visualizations with Matplotlib. Making line graphs and scatter plots, customizing plots, making multiple plots, and working with time-based data. +- Beginner's Python Cheat Sheet - Plotly + - Focuses on creating visualizations with Plotly. Making line graphs, scatter plots, and bar graphs, styling plots, making multiple plots, and working with geographical datasets. +- Beginner's Python Cheat Sheet - Django + - Focuses on creating web apps with Django. Installing Django and starting a project, working with models, building a home page, using templates, using data, and making user accounts. +- Beginner's Python Cheat Sheet - Git + - Focuses on using Git for version control. Installing and configuring Git, initializing a repository, branching, getting started with GitHub, and more. + +--- + +If you find any errors, please feel free to get in touch: + +Email: [ehmatthes@gmail.com](mailto:ehmatthes@gmail.com) + +Twitter: [@ehmatthes](https://twitter.com/ehmatthes) + +Mastodon: [@ehmatthes@fosstodon.org](https://fosstodon.org/@ehmatthes) \ No newline at end of file diff --git a/online_resources_site/mkdocs.yml b/online_resources_site/mkdocs.yml index 9888d68..b9ddedb 100644 --- a/online_resources_site/mkdocs.yml +++ b/online_resources_site/mkdocs.yml @@ -41,6 +41,7 @@ nav: - "Setup Instructions": - "setup_instructions/index.md" - "Configuring VS Code": "setup_instructions/configuring_vs_code.md" + - "Cheat Sheets": "cheat_sheets.md" - "Updates": - "updates/index.md" - "First printing": "updates/first_printing.md"