Python (2022-05-02 - 2022-05-05) ================================ .. contents:: :local: .. sidebar:: *Training Information* **Material** * :doc:`/trainings/material/soup/python/group` **Source Code** * `Github `__ **Notebook** * :doc:`Structure ` * :doc:`Whole notebook ` * :download:`Download ` Topics ------ * :doc:`/trainings/material/soup/python/basics/installation` * :doc:`/trainings/material/soup/python/misc/vscode` Basics ...... * :doc:`/trainings/material/soup/python/basics/python_0110_blahblah/topic` * :doc:`/trainings/material/soup/python/basics/python_0120_helloworld/topic` * :doc:`/trainings/material/soup/python/basics/python_0130_syntax_etc/topic` * :doc:`/trainings/material/soup/python/basics/python_0140_variables/topic` * :doc:`/trainings/material/soup/python/basics/python_0150_datatypes_overview/topic` * :doc:`/trainings/material/soup/python/exercises/herdt/swap` * `Non-pythonic `__ * `Pythonic `__ * :doc:`/trainings/material/soup/python/basics/python_0160_boolean/topic` * :doc:`/trainings/material/soup/python/basics/python_0150_datatypes_overview_compound/topic` * :doc:`/trainings/material/soup/python/basics/python_0139_commandline_argv/topic` * :doc:`/trainings/material/soup/python/exercises/legacy/cmdline_digit` (see `Github `__) * :doc:`/trainings/material/soup/python/basics/python_0170_if/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/max_numbers` (see `Github `__) * Exercise: :doc:`/trainings/material/soup/python/exercises/herdt/greet` * :doc:`/trainings/material/soup/python/basics/python_0200_sequential_types/topic` * :doc:`/trainings/material/soup/python/basics/python_0210_indexing_slicing/topic` * :doc:`/trainings/material/soup/python/basics/python_0250_refs_flat_deep_copy/topic` Control Flow and Iteration .......................... * :doc:`/trainings/material/soup/python/basics/python_0193_while/topic` * :doc:`/trainings/material/soup/python/exercises/legacy/while_primeness` (see `Github `__) * :doc:`/trainings/material/soup/python/basics/python_0220_for/topic` * :doc:`/trainings/material/soup/python/basics/python_0225_range/topic` * :doc:`/trainings/material/soup/python/advanced/iteration-generation/python_1010_generators_yield/topic` * :doc:`/trainings/material/soup/python/exercises/herdt/exercise_while_even_numbers` * :doc:`/trainings/material/soup/python/exercises/legacy/for_primeness` (see `Github `__) Encoding, Strings, and File I/O ............................... * :doc:`/trainings/material/soup/python/misc/encoding/topic` * :doc:`/trainings/material/soup/python/basics/python_0300_strings/topic` * :doc:`/trainings/material/soup/python/basics/python_0310_strings_formatting/topic` * :doc:`/trainings/material/soup/python/basics/python_0320_strings_methods/topic` * :doc:`/trainings/material/soup/python/basics/python_0500_files/topic` * :doc:`/trainings/material/soup/python/exercises/legacy/distill` (see `Github `__) Excursion: CAN Communication, OO, Modules ......................................... * :doc:`/trainings/material/soup/linux/hardware/can/group` * Live hacking * Send values from a list * Wrap sensor around list, giving values cyclically - maintaining the cycle by hand * Enter :doc:`python:library/itertools` (``itertools.cycle()``) See `Github `__ Modules ....... * :doc:`/trainings/material/soup/python/advanced/modules` CSV ... * :doc:`/trainings/material/soup/python/misc/csv/topic` * :doc:`/trainings/material/soup/python/exercises/userdb/csvreader` * :doc:`/trainings/material/soup/python/exercises/userdb/csvdictreader` Functions ......... * :doc:`/trainings/material/soup/python/basics/python_0270_functions/topic` CSV, Functions .............. * :doc:`/trainings/material/soup/python/exercises/userdb/csvreader-function` * :doc:`/trainings/material/soup/python/exercises/userdb/csvdictreader-function` * :doc:`/trainings/material/soup/python/exercises/userdb/userdb_csv` Live coded that, see `Github `__ PyPI, Virtual Environments .......................... * :doc:`/trainings/material/soup/python/swdev/pip/topic` * :doc:`/trainings/material/soup/python/swdev/venv/topic` Requirements Engineering, Test Driven Development ................................................. * :doc:`/trainings/material/soup/python/swdev/pytest/intro` Live coding on the CSV code base, see `Github `__ More On DataTypes ................. * :doc:`/trainings/material/soup/python/basics/python_0400_lists/topic` * :doc:`/trainings/material/soup/python/basics/python_0450_dictionaries/topic` * :doc:`/trainings/material/soup/python/basics/python_0460_sets/topic` * :doc:`/trainings/material/soup/python/exercises/legacy/passwd` Random Topics ............. * :doc:`/trainings/material/soup/python/drafts/argparse/topic`, see `Github `__ * :doc:`/trainings/material/soup/python/drafts/matplotlib/topic` * :doc:`subprocess ` Links ----- Books ..... * `Book: Automate the Boring Stuff with Python (Al Sweigart) `__ Python Beginner Tutorials ......................... * `5 Common Python Mistakes and How to Fix Them `__, by `Corey Schafer `__ .. raw:: html * `Python Quick Tip: F-Strings - How to Use Them and Advanced String Formatting `__, by `Corey Schafer `__ .. raw:: html * `Python Tutorial for Beginners 4: Lists, Tuples, and Sets `__, by `Corey Schafer `__ .. raw:: html * `Python Tutorial for Beginners 5: Dictionaries - Working with Key-Value Pairs `__, by `Corey Schafer `__ .. raw:: html * `Python Tutorial for Beginners 7: Loops and Iterations - For/While Loops `__, by `Corey Schafer `__ .. raw:: html * `Python Tutorial for Beginners 8: Functions `__, by `Corey Schafer `__ .. raw:: html * `10 Python Tips and Tricks For Writing Better Code `__, by `Corey Schafer `__ .. raw:: html * `Python Tutorial: Using Try/Except Blocks for Error Handling `__, by `Corey Schafer `__ .. raw:: html * `Python 3.7: Encode String Method `__ .. raw:: html Standard Library ................ * `Python Tutorial: CSV Module - How to Read, Parse, and Write CSV Files `__, by `Corey Schafer `__ .. raw:: html * `Python Tutorial: Calling External Commands Using the Subprocess Module `__, by `Corey Schafer `__ .. raw:: html NumPy and Data Science Tutorials ................................ * `Complete Python NumPy Tutorial (Creating Arrays, Indexing, Math, Statistics, Reshaping) `__, by `Keith Galli `__ .. raw:: html * `Solving real world data science tasks with Python Pandas! `__, by `Keith Galli `__ .. raw:: html * `Intro to Data Visualization in Python with Matplotlib! (line graph, bar chart, title, labels, size) `__, by `Keith Galli `__ .. raw:: html