This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mini program: Password Generator in Python | |
# This program creates a random and secure password | |
# The user can choose the length and what characters to include | |
import random | |
import string | |
print("=== Password Generator ===") | |
# Ask the user for the password length |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mini program: Simple Alarm Reminder with Custom Message | |
# Beginner-friendly, clear and step by step | |
import time | |
while True: | |
# Ask the user to set an alarm time | |
alarm_time = input("Set your alarm time (HH:MM, 24-hour format): ") | |
message = input("Enter your custom alarm message: ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mini program: Shopping Ticket in English | |
# Simple and clear for beginners | |
# Ask for product details | |
product = input("Choose the product: ") # Name of the product | |
price = float(input("Enter the product price: ")) # Price per unit | |
quantity = int(input("Enter the quantity: ")) # How many units | |
student = input("Are you a student? (YES / NO) ").lower() # Student check | |
print() # Empty line for better visual separation |