Skip to content

Entry-level Python projects: Caesar Cipher, Tip Calculator and more– Building skills for cloud engineering

License

Notifications You must be signed in to change notification settings

shahtaj2102/python-beginner-projects

Repository files navigation

Python Beginner Projects 🐍

Entry-level Python scripts demonstrating core programming fundamentals: input handling, math, strings, and functions. Building blocks for AWS automation and DevOps scripting.

Python License

Featured Projects.

Table of Contents

1. 📱 Tip Calculator

Interactive tool to split bills with custom tip percentage.

Skills Demonstrated:

  • User input (input())
  • Type conversion (float(), int())
  • F-string formatting
  • Rounding (round())

Demo:

Tip Calculator demo

View Code

2. 🎢 Rollercoaster Tickets

Nested conditional pricing based on height/age/photo.

Skills Demonstrated:

  • Nested if/elif chains
  • Multiple conditions (>=, <=)
  • String methods (.upper())
  • Dynamic billing logic

Demo:

Rollercoaster Demo

View Code

3. Treasure Island

Interactive text adventure with branching story.

Skills Demonstrated:

  • Deep nested if/elif (3 levels)
  • Multiline strings (ASCII art)
  • String methods (.lower())

Demo:

Treasure Demo

View Code

4. 🎲 Heads or Tails

50/50 coin flip simulator using random module.

Skills Demonstrated:

  • Random integers (random.randint())
  • Simple if/else logic
  • Single-line conditional execution

Demo:

Heads/Tails Demo

View Code

5. Rock Paper Scissors

Classic 2-player ASCII art game with input validation and win/loss logic.

Skills Demonstrated:

  • ASCII multiline strings
  • List indexing (game_images[user_choice])
  • Input validation (if user_choice < 0 or > 2)
  • Complex conditional logic (win/lose/draw)
  • Random computer opponent (random.randint(0, 2))

Demo:

Rock Paper Scissors Demo

View Code

6. 🔐 Password Generator

Interactive CLI tool generates secure, customizable passwords via random character selection and shuffling.

Skills Demonstrated:

  • User input parsing (int(input()))
  • Nested loops (range() + random.choice())
  • List building (append())
  • In-place shuffling (random.shuffle())
  • String concatenation ("".join())

Demo:

Password Generator Demo

View Code

7. 🎮 Hangman

Single-player word guessing game with 6 lives, random words, and ASCII stages.

Skills Demonstrated:

  • Random word choice (random.choice())
  • Blanks display ("_".join())
  • Lives counter (lives -= 1)
  • Repeated guesses (while "_" in display)
  • ASCII stages (stages[lives])

Demo:

Hangman Demo Hangman Demo Hangman Demo

So on till either we guess the word or loose the game.

Hangman Demo

View Code

8. 🔤 Caesar Cipher

Infinite replay text encoder/decoder using single function with negative shift trick.

Skills Demonstrated:

  • Single caesar() for encode/decode (shift_amount *= -1)
  • Modulo wrapping (shifted_position %= len(alphabet))
  • Infinite loop (while should_continue)
  • Boolean flag control (should_continue = False)
  • Non-alphabet preservation (if letter not in alphabet)

Demo:

Caesar Cipher Demo Caesar Cipher Demo

View Code

9. Blind auction

Secret bidding game—highest hidden bid wins!

Skills Demonstrated:

  • While loops for continuous input.
  • Dictionaries ({name: bid})
  • Custom functions (find_highest_bidder())
  • f-string winner announcement.
  • User validation (yes/no continue)

Demo:

Blind Auction Demo Blind Auction Demo

View Code

⬆ Back to Top

Quick Start

  1. Clone: git clone https://github.com/shahtaj2102/python-beginner-projects.git
  2. Run: python rollercoaster_ticket.py , python tip_calculator.py , python Treasure_island.py , python Heads_or_tails.py , python rock_paper_scissors.py , python Password_generator.py , python Hangman.py , python caesar_cipher.py , python Blind_auction.py

About

Shahtaj Singh Gill – AWS Cloud Engineer, Toronto. AWS Portfolio | LinkedIn

About

Entry-level Python projects: Caesar Cipher, Tip Calculator and more– Building skills for cloud engineering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages