Skip to content

prashansa-24/Python_Small_Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Practice Projects

This workspace contains three small Python projects:

  • Countdown_Timer: a GUI countdown timer built with Tkinter
  • ReadCSV: a simple CSV reader that uses pandas
  • RockPaperSci: a terminal-based rock-paper-scissors game

Project Structure

Python/
├── Countdown_Timer/
│   └── Code.py
├── ReadCSV/
│   ├── random_user_data_1000.csv
│   └── Read.py
└── RockPaperSci/
    └── Code.py

Requirements

  • Python 3.x
  • pandas for the CSV reader project

Install pandas with:

pip install pandas

tkinter is used by the countdown timer and is usually included with standard Python installations.

How To Run

Open a terminal in the project root or in each project folder.

1. Countdown Timer

This is a GUI timer application where you can enter time in one of these formats:

  • SS
  • MM:SS
  • HH:MM:SS

Run:

cd Countdown_Timer
python Code.py

Features:

  • Start a countdown in a separate thread
  • Stop and reset the timer
  • Shows a message when the countdown finishes

2. Read CSV

This script reads random_user_data_1000.csv using pandas, prints the full dataset, and then prints each column name.

Run:

cd ReadCSV
python Read.py

Note: run this script from inside the ReadCSV folder so the CSV file path resolves correctly.

3. Rock Paper Scissors

This is a terminal game where you play against the computer.

Run:

cd RockPaperSci
python Code.py

How it works:

  • Enter Rock, Paper, or Scissors
  • The computer randomly chooses its move
  • The winner is printed in the terminal
  • You can keep playing until you enter anything other than yes

Notes

  • The project files currently use simple standalone scripts.
  • Some scripts depend on the terminal's current folder because they use relative file paths.
  • Input values are case-sensitive in the rock-paper-scissors game.

Possible Improvements

  • Add input validation for the rock-paper-scissors game
  • Save CSV output summaries instead of printing the entire file
  • Add pause and resume support to the countdown timer

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages