These are simple python projects for absolute beginners
These projects will help you practice the basic programming concepts
A little piece of advice; don't spend too much time on practicing simple projects
After making some projects, think of a problem you have and try solving it using programming
This will allow you to study more advanced methods
Instructions for how to install and get the project running.
Ensure you have the following software installed before proceeding:
- Python 3.11
- pip
- virtualenv (optional but recommended)
To verify that you have Python 3.11 installed, you can run:
python --version
- Clone the repo
git clone https://github.com/your_username/repo_name.git](https://github.com/ZeyadMohamad/Simple-Python-projects.git
- Install python-dotenv
pip install python-dotenv
- Create a .env file
# .env DATABASE_URL=postgresql://user:password@localhost:5432/mydatabase SECRET_KEY=mysecretkey DEBUG=True
- Load environment variables in your Python code
# app.py or main.py from dotenv import load_dotenv import os # Load environment variables from .env file load_dotenv() # Accessing environment variables database_url = os.getenv('DATABASE_URL') secret_key = os.getenv('SECRET_KEY') debug = os.getenv('DEBUG') == 'True' print(f'Database URL: {database_url}') print(f'Secret Key: {secret_key}') print(f'Debug Mode: {debug}')
You can directly copy the program code and paste it in your environment
You can also run the program using cmd
python clock.py
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Gmail: [email protected]
Linkedin: https://www.linkedin.com/in/zeyad-mohammad-52258a283/
Hackerrank: https://www.hackerrank.com/profile/zoz_moh2004