How catowic/python-random-things-for-now-ig- works
This repository is a collection of independent, interactive command-line Python programs rather than one integrated application. Users provide inputs to individual calculators, converters, carts, games, or a countdown timer, and each script computes or runs its own result and prints it. The sampled game scripts use Python’s random module, while the timer uses time.sleep. The README specifically calls out the number-guessing game; no shared application layer or persistent storage is evident in the supplied tree and excerpts.
Main entry points: dice_program.py Dice roll · number_guessing_game.py Number guessing · rock_paper_scissors.py Rock paper scissors · countdown_timer_program.py Countdown timer
Components 13
Calculators
- Compound interest
calculators/compound_interest_calculator.py
Converters
- Temperature conversion
converters/temperature_conerter.py - Weight conversion
converters/weight_converter.py
Shopping carts
- Food shopping cart
cart/shopping_cart_program.py - Game shopping cart
cart/steam_cart.py
Games
- Dice roll
game/dice_program.py - Number guessing
game/number_guessing_game.py - Question test
game/question_test.py - Rock paper scissors
game/rock_paper_scissors.py
Timer
- Countdown timer
timer/countdown_timer_program.py
Other components
- User
- Python random
- Python time
Connections 24
- User → Compound interest: enters values
- Compound interest → User: prints interest
- User → Temperature conversion: enters values
- Temperature conversion → User: prints conversion
- User → Weight conversion: enters values
- Weight conversion → User: prints conversion
- User → Food shopping cart: enters items
- Food shopping cart → User: prints total
- User → Game shopping cart: selects games
- Game shopping cart → User: prints total
- User → Dice roll: enters dice count
- Dice roll → Python random: requests rolls
- Dice roll → User: prints dice and total
- User → Number guessing: enters guesses
- Number guessing → Python random: requests number
- Number guessing → User: prints clues and result
- User → Question test: interacts
- Question test → User: prints result
- User → Rock paper scissors: enters moves
- Rock paper scissors → Python random: chooses move
- Rock paper scissors → User: prints score
- User → Countdown timer: enters duration
- Countdown timer → Python time: sleeps each second
- Countdown timer → User: prints countdown