Skip to content

ZeyadMohamad/Simple-Python-projects

Repository files navigation

Project Title

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

Project Logo

Table of Contents

Installation

Instructions for how to install and get the project running.

Prerequisites

Ensure you have the following software installed before proceeding:

Checking Your Python Version

To verify that you have Python 3.11 installed, you can run:

python --version

Installation Steps

  1. Clone the repo
    git clone https://github.com/your_username/repo_name.git](https://github.com/ZeyadMohamad/Simple-Python-projects.git
  2. Install python-dotenv
    pip install python-dotenv
  3. Create a .env file
       # .env
     DATABASE_URL=postgresql://user:password@localhost:5432/mydatabase
     SECRET_KEY=mysecretkey
     DEBUG=True
  4. 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}')
    

Usage

You can directly copy the program code and paste it in your environment
You can also run the program using cmd

python clock.py

License

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.

Contact Me

Gmail: [email protected]
Linkedin: https://www.linkedin.com/in/zeyad-mohammad-52258a283/
Hackerrank: https://www.hackerrank.com/profile/zoz_moh2004

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages