This is a site dedicated to my notes on the Python language. Here I try to collect part of my experience of the day with the use of this language.
Study material, practical exercises shared during the workshop held at the Agricultural University of Athens (AUA) in July-August 2023.
Package | Description |
---|---|
Study materials | Slides for the workshop. |
Learning activities | Source code for download. |
Practical exercises | Proposed exercises and solutions. |
Videos | Tools - help in video format |
Table 1. | Contents Practical Workshop - Introduction to Python Fundamentals |
Package | Description |
---|---|
Beginner’s Guide to Python | Another good resource for beginners. It contains references to courses, examples, cheat sheets. |
Official site for Python language | The main site for information on the Python language. |
The Python Standard Library | While The Python Language Reference describes the exact syntax and semantics of the Python language, this library reference manual describes the standard library that is distributed with Python. |
The Python tutorial | A good tutorial to start Python. |
PEP 8 – Style Guide for Python Code | Style guide, useful for writing clean code in Python. |
Rosetta Code | Is a site with general information about programing languages, it is included Python. |
Data Science Rosetta Stone | Site focused in the use of Python for data science tasks. |
W3 Schools | Good site for reference |
Python Cheat Sheet for Beginners | Good for language reference. |
Python Crash Course - Cheat Sheets | Good for language reference. |
Table 2. | Interesting links |
This folder contains examples about advanced topics using Python.
Topic | Description |
---|---|
Datetime and time | python_datetime_main.py. Script with examples using time and datetime to manage time data. Date, UTC Date, time. |
Directories, filenames, paths | python_directories_main.py. Script with examples about managing paths and directories. |
Environment and system variables | python_environment_main.py. Implements functions to detect the operating system family (Windows or Linux) in order to display the values of the operating system environment variables. |
Executing Shell commands | python_execute_shell_cmd.py. Script to run a shell command detecting Windows or Linux operating systems. |
Logging data | python_logging_main.py. Script to show logging in files, using info, warning and debug messages. |
Threads and jobs | Examples on the use of threads and parallelism. |
Multi language examples - automatic translation using internationalization (i18n) | python_language_i18n.py. Example using the GNU gettext module, included with the Python official standard library, to get internationalization (i18n) and localization (l10n). Internationalization (i18n) refers to the operation by which a program becomes aware of multiple languages. |
Processing parameters from command line | . |
Reading and writing configuration files using "configparser" | python_load_config_from_files.py. |
Webcam - Accessing data from web cam | . |
TkInter GUI app based + Packaging example (pip, .EXE) | An example using the TkInter GUI, applying packaging techniques to get PIP packages (for Pypi.org) and .EXE executables. |
Testing in Python | Examples of test cases and test suit |
Table 3. | Advanced topics |
Topic | Description |
---|---|
Python for beginners | Get started with Python! Learn how to create programs and projects in Python. Work with strings, lists, loops, dictionaries, and functions. |
PCAP: Programming Essentials in Python | Learn programming from scratch and master Python. By Cisco Networking Academy in collaboration with OpenEDG Python Institute. |
IBM: Python Basics for Data Science | The objectives of this course is to get you started with Python as the programming language and give you a taste of how to start working with data in Python. |
. | . |
Table 4. | Courses and EMOOCS |
Topic | Description |
---|---|
A Beginners Guide to Python 3 Programming | Includes an introduction to Python as well as advanced topics such as generators and coroutines. Offers extensive coverage of Object Orientation and the features in Python 3 supporting classes, inheritance and protocols. Presents Functional Programming as well as how concepts such as closures, currying and higher order functions work in Python. Includes all code examples (and exercise solutions) on line in a GitHub repository. |
Advanced Guide to Python 3 Programming | Takes each subject from an introduction to an advanced level. Provides coverage of a wide range of graphic related topics including computer art, Graphical User Interfaces and games. Presents an extensive coverage of concurrency and parallelism in Python including AsyncIO and Reactive programming. All code examples and exercise solutions are provided in a GitHub repository. |
Python Crash Course - Resources for Python Crash Course (1st edition), from No Starch Press. | . |
An Introduction to Statistical Learning with applications in Python | An Introduction to Statistical Learning provides a broad and less technical treatment of key topics in statistical learning. This book is appropriate for anyone who wishes to use contemporary tools for data analysis. |
. | . |
Table 5. | Books |
- Modules. https://docs.python.org/3/library/__main__.html?highlight=__init__
- Modules.https://docs.python.org/3/tutorial/modules.html#tut-modules
- Python programs in interviews. https://www.linkedin.com/feed/update/urn:li:activity:7095131874892603392
- State-of-the-Art Shitcode Principles https://github.com/trekhleb/state-of-the-art-shitcode
- An Overview of Packaging for Python. https://packaging.python.org/en/latest/overview/
- typing - Support for type hints https://docs.python.org/3/library/typing.html
Installing dependencies for Linux operating systems
sudo apt-get install python3-dev
sudo apt-get install python3
sudo apt-get install python3-pip
Creating environment.
python3 -m venv ./python_code_recipes_venv
source ./python_code_recipes_venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
"%LocalAppData%\Programs\Python\Python38\python.exe" -m venv python_code_recipes_venv
\python_code_recipes_venv\Scripts\activate
pip install --upgrade pip
pip install -r requirements.txt
To check Python version installed.
python --version
To freeze libraries in virtual environment
pip freeze
pip freeze > requirements.txt