Entry-level Python scripts demonstrating core programming fundamentals: input handling, math, strings, and functions. Building blocks for AWS automation and DevOps scripting.
- 1. Tip Calculator
- 2. Rollercoaster Tickets
- 3. Treasure Island
- 4. Heads or Tails
- 5. Rock Paper Scissors
- 6. Password Generator
- 7. Hangman
- 8. Caesar cipher
- 9. Blind auction
Interactive tool to split bills with custom tip percentage.
Skills Demonstrated:
- User input (
input()) - Type conversion (
float(),int()) - F-string formatting
- Rounding (
round())
Demo:
Nested conditional pricing based on height/age/photo.
Skills Demonstrated:
- Nested if/elif chains
- Multiple conditions (
>=,<=) - String methods (
.upper()) - Dynamic billing logic
Demo:
Interactive text adventure with branching story.
Skills Demonstrated:
- Deep nested if/elif (3 levels)
- Multiline strings (ASCII art)
- String methods (
.lower())
Demo:
50/50 coin flip simulator using random module.
Skills Demonstrated:
- Random integers (
random.randint()) - Simple if/else logic
- Single-line conditional execution
Demo:
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:
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:
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:
So on till either we guess the word or loose the game.
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:
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:
- Clone:
git clone https://github.com/shahtaj2102/python-beginner-projects.git - 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
Shahtaj Singh Gill – AWS Cloud Engineer, Toronto.
Portfolio | LinkedIn













