Skip to content

Nalinakshan/Python-Programming-Projects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python CLI Project Suite

A collection of three interactive Python applications demonstrating core programming logic, user-input handling, and modular code design.

πŸ“‹ Table of Contents

  1. Simple Calculator
  2. GK Quiz Game
  3. Rock, Paper, Scissors

1. Simple Calculator

A straightforward arithmetic tool that performs basic operations based on user selection.

  • Features: Supports Addition, Subtraction, Multiplication, and Division.
  • Logic: Uses conditional branching (if-elif-else) and local function definitions to process calculations.

2. GK Quiz Game

A comprehensive 10-question quiz that tests general knowledge and tracks performance.

  • Features: * Multiple-choice format (A, B, C, D).

  • Real-time "Correct/Wrong" feedback.

  • Final score calculation as a percentage.

  • Option to replay without restarting the script.

  • Data Handling: Uses a dictionary for questions and a nested list for options.

3. Rock, Paper, Scissors

A classic game against a randomized computer opponent.

  • Features: * Input validation (standardizes input like "rock" or "ROCK").
  • Randomized computer logic using the random module.
  • Continuous gameplay loop.

πŸ› οΈ Technical Skills Demonstrated

  • Control Flow: Mastery of while loops and complex nested if statements.
  • Data Structures: Effective use of Lists and Dictionaries to manage game data.
  • Functional Programming: Modularizing code into reusable functions like check_answer() and play_again().
  • Error Prevention: Basic input handling to ensure the program doesn't crash on unexpected strings.

πŸš€ How to Run

  1. Clone the repository:
git clone https://github.com/yourusername/repository-name.git
  1. Run any of the scripts using Python 3:
python calculator.py

πŸ‘€ Author

Nalinakshan B.Tech Student & Aspiring VLSI Engineer I am passionate about Digital Logic Design, Verilog, and using Python to build efficient algorithms.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages