Practical Python Examples
In this repository I will try to share some practical and tested python examples. My examples are written and tested on an Ubuntu machine. These examples will start from the beginner level.
I will use the text files in gutenberg_org in some of our examples. These files are shared in https://gutenberg.org and selected randomly.
mkdir github
cd github
git clone https://github.com/ahmetax/practical-python-examples.git
cd practical-python-examples
Go to https://www.python.org/downloads/ and select your preferred version.
I will use Python 3.12 as the starting point.
python3.12 -m venv e312
source e312/bin/activate
pip install -r requirements.txt
python -v
If you wish, you can share your own python examples also. You can use a header on top of your code as follows:
"""
Author: Your name
Date: Creation date
Python {version no: x.y.z } Operating System
"""
You can use README.md files to create the projects from scratch by any Coding Agent.
In https://gurmezin.com site you can find detailed explanations for each individual example.