Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project 01 - Python Projects for Beginners

This repository contains three beginner-friendly Python projects to help you practice and improve your programming skills. Each project is designed to cover basic concepts of Python, including functions, loops, conditionals, and input handling.


1. Simple Console Calculator

This program is a basic calculator that performs the following operations:

  • Addition
  • Subtraction
  • Multiplication
  • Division

Features:

  • User-friendly interface to select operations.
  • Handles invalid inputs gracefully.
  • Allows repeated calculations until the user decides to exit.

How to Run:

  1. Copy the code into a Python file (e.g., calculator.py).
  2. Run the script in your Python environment.
  3. Follow the prompts to select an operation and input numbers.

2. Temperature Converter

This program converts temperatures between the following scales:

  • Celsius (C)
  • Fahrenheit (F)
  • Kelvin (K)

Features:

  • Converts temperatures from one scale to another.
  • Supports bidirectional conversions (e.g., Celsius to Fahrenheit and vice versa).
  • Prompts the user to continue or quit after each conversion.

How to Run:

  1. Copy the code into a Python file (e.g., temperature_converter.py).
  2. Run the script in your Python environment.
  3. Enter the input temperature, input scale, and desired output scale when prompted.

3. Rock-Paper-Scissors Game

This is a simple implementation of the classic "Rock-Paper-Scissors" game where a user plays against the computer.

Features:

  • Implements the game rules:
    • Rock vs Paper -> Paper wins
    • Rock vs Scissors -> Rock wins
    • Paper vs Scissors -> Scissors wins
  • Randomized computer choices for a fair game.
  • Option to play multiple rounds until the user decides to quit.

How to Run:

  1. Copy the code into a Python file (e.g., rock_paper_scissors.py).
  2. Run the script in your Python environment.
  3. Choose your move (Rock, Paper, or Scissors) and see if you can beat the computer!

How to Use

  1. Clone the repository:
    git clone https://github.com/yourusername/python-beginner-projects.git
    cd python-beginner-projects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages