.. include:: Python Grundlagen (2021-08-23 - 2021-08-25) =========================================== .. sidebar:: *Training Information* **Start** Monday 2021-08-23, 9:00 **Course Description** `tecTrain "Programmierung Grundlagen" `__ **Material** * :doc:`Python Topics ` * Jupyter Notebook: :doc:`HTML `, :download:`download ` * `Github Repository `__ .. toctree:: :hidden: Jupyter Notebook (Übersicht) Jupyter Notebook exercises/sap-cleaned .. contents:: :local: Log --- Day 1 ..... The basics, with a moderate amount of exercises. * :doc:`/trainings/material/soup/python/basics/installation` * :doc:`/trainings/material/soup/python/misc/vscode` * Datatypes * :doc:`/trainings/material/soup/python/basics/python_0110_blahblah/topic` * :doc:`/trainings/material/soup/python/basics/python_0120_helloworld/topic` * `Hello world `__ * `Commandline arguments demo `__ * :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/basics/python_0160_boolean/topic` * :doc:`/trainings/material/soup/python/basics/python_0150_datatypes_overview_compound/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/mixed_list_interactive` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/mixed_list_executable` * :doc:`/trainings/material/soup/python/basics/python_0200_sequential_types/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/dict_keyerror` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/cmdline_digit` (`Solution `__) * :doc:`/trainings/material/soup/python/basics/python_0250_refs_flat_deep_copy/topic` * Control Flow and Iteration * :doc:`/trainings/material/soup/python/basics/python_0170_if/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/max_numbers` * :doc:`/trainings/material/soup/python/basics/python_0193_while/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/while_primeness` (`Solution `__) * :doc:`/trainings/material/soup/python/basics/python_0220_for/topic` * :doc:`/trainings/material/soup/python/basics/python_0225_range/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/for_primeness` * Functions and Generators * :doc:`/trainings/material/soup/python/basics/python_0270_functions/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/max_numbers_function` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/primeness_function` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/uniq_function` Day 2 ..... * Functions and Generators * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/uniq_function` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/join_function` * :doc:`/trainings/material/soup/python/advanced/iteration-generation/python_1010_generators_yield/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/uniq_generator` * File I/O and Strings * :doc:`/trainings/material/soup/python/basics/python_0300_strings/topic` * :doc:`/trainings/material/soup/python/basics/python_0320_strings_methods/topic` * Exercise: :doc:`/trainings/material/soup/python/exercises/legacy/string-rightjustify` * :doc:`/trainings/material/soup/python/basics/python_0310_strings_formatting/topic` * :doc:`/trainings/material/soup/python/misc/encoding/topic` * :doc:`/trainings/material/soup/python/basics/python_0500_files/topic` * ``collections.namedtuple``: see `here `__ * ``datetime`` * ``datetime``: `here `__ * ``timedelta``: `here `__ * ``datetime.strptime()``: `parsing strings `__ .. image:: datetime.png :scale: 50% * Exercise: :doc:`exercises/sap-cleaned` * Modules * :doc:`/trainings/material/soup/python/advanced/modules` * `Quick run-through `__, modularizing the :doc:`last exercise ` * JSON (Java Script Object Notation) `quick demo `__ (full JSON documentation see `here `__) Day 3 ..... .. image:: plan.png :scale: 70% * :doc:`/trainings/material/soup/python/swdev/pip/topic` * :doc:`/trainings/material/soup/python/swdev/venv/topic` * :doc:`/trainings/material/soup/python/misc/mqtt/topic` * Databases * :doc:`/trainings/material/soup/python/misc/db/dbapi2` * :doc:`/trainings/material/soup/python/misc/db/sqlite3` * `DB-API2 for MS-SQL `__ * Advanced Topics * :doc:`/trainings/material/soup/python/advanced/oo/group` * :doc:`/trainings/material/soup/python/advanced/exceptions/topic` * :doc:`/trainings/material/soup/python/swdev/unittest` * Miscellaneous Topics * `Multithreading `__ * `OPC-UA `__, `Python client `__ Live-Hacking (Jupyter Notebook) ------------------------------- * :doc:`Jupyter Notebook (Übersicht) ` * :doc:`Jupyter Notebook ` * :download:`Download ` Links ----- * RRDtool (RRD = Round Robin Database) * `Homepage and docs `__ * `PyPI package `__ Tutorials --------- * `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: CSV Module - How to Read, Parse, and Write CSV Files `__, 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 * `Python Tutorial: OS Module - Use Underlying Operating System Functionality `__, by `Corey Schafer `__ .. raw:: html * `Python Tutorial: Calling External Commands Using the Subprocess Module `__, by `Corey Schafer `__ .. raw:: html * `Transforming Code into Beautiful, Idiomatic Python `__, by **Raymond Hettinger** .. raw:: html After Work Party ---------------- Bleiburg is not far away from Slovenia. As such, as a gift to myself after three work days, I had made plans to climb :doc:`Grintovec (2558m) ` after an overnight stay at `Češka Koča `__. See :doc:`here ` for a tour description.