Skip to content

An open-source GitHub repository containing Python project ideas, steps, tips, and code solutions.

License

Notifications You must be signed in to change notification settings

Infinitode/Python-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Projects

An open-source GitHub repository containing Python project ideas, steps, tips, and code solutions.

This repository is designed to help Python learners at all levels, starting with beginner-friendly projects and gradually progressing to more advanced ones. Each project includes clear instructions and a working code implementation.

Table of Contents

  1. Setup
  2. Beginner Projects
  3. Intermediate Projects
  4. Contributing
  5. License

Setup

  • Ensure have at least Python 3.6 or later (we recommend 3.12 or later) installed on your computer. You can do a quick search and download it from a trusted provider for your platform.

  • Ensure you have an IDE or a place where you can code and run the Python interpreter.

Tip

We use Visual Studio Code. It's fast, efficient, and has many extensions and customizability options.

Beginner Projects

These projects are ideal for those new to Python. Each project includes a description, steps to follow, and tips for completing it.

1. Calculator

2. Number Guessing Game

3. Password Generator

  • Description: Build a simple password generator than can generate custom length passwords, from 8 up to 128 characters. Use uppercase, lowercase, symbols, and numbers.

  • Solution: https://github.com/Infinitode/Python-Projects/blob/main/Beginner/3_password_generator.py

  • Steps:

    1. Define your password generator's maps or strings.
    2. Prompt the user for a number [8 - 128] input.
    3. Generate the password.
    4. Display the result.
  • Tips:

    Tip 1:

    Use the string module for character sets like punctuation, letters or special characters.

    Tip 2:

    Use input() to prompt the user for input.

    Tip 3:

    Use a loop to generate the password up until the given length.

    Tip 4:

    Print out the result using print().

4. Tip Calculator

  • Description: Build a simple tip calculator, that calculates the tip based on the total and the desired percentage with splits.

  • Solution: https://github.com/Infinitode/Python-Projects/blob/main/Beginner/4_tip_calculator.py

  • Steps:

    1. Get the total from the user.
    2. Get the tip percentage from the user.
    3. Get the amount of people who should split the bill.
    4. Calculate the tip.
    5. Display the result.
  • Tips:

    Tip 1:

    Get all inputs using input().

    Tip 2:

    Calculate the tip_amount, new_total and splits_per_person using basic arithmetic and math.

    Tip 3:

    Print out the result using print().

5. Temperature Converter

  • Description: Build a simple temperature converter that converts between Celsius and Fahrenheit.

  • Solution: https://github.com/Infinitode/Python-Projects/blob/main/Beginner/5_temperature_converter.py

  • Steps:

    1. Define conversion values for each conversion.
    2. Prompt the user for the unit to convert to, and from.
    3. Prompt the user for a temperature value.
    4. Convert.
    5. Display the result.
  • Tips:

    Tip 1:

    Use predefined formulas for accurate conversion between units.

    Tip 2:

    Use input() to prompt the user for input.

    Tip 3:

    Print out the result using print().

6. Palindrome Checker

7. Word Counter

Note

Working code solutions are in the /Beginner folder.

Intermediate Projects

These projects are ideal for those with experience in Python. Each project includes a description, steps to follow, and tips for completing it.

1. Tic Tac Toe

  • Description: Build a tic tac toe board, with it's own algorithm for winning and countering player moves.

  • Solution: https://github.com/Infinitode/Python-Projects/blob/main/Intermediate/1_tic_tac_toe.py

  • Steps:

    1. Create the board (3x3 grid) and other logic (handling invalid moves, etc.)
    2. Handle player and computer moves, including ties, wins and losses.
    3. Display the board and start the game.
  • Tips:

    Tip 1:

    Use functions for repetitive tasks.

    Tip 2:

    Create an algorithm that not only chooses certain priority positions on the board, but also counters player moves.

    Tip 3:

    Add error handling and retries if a player chooses a place on the board that is already occupied.

Note

Working code solutions are in the /Intermediate folder.

Contributing

Contributions are welcome! If you have project ideas or improvements, feel free to fork the repository and open a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.