Skip to content

Instantly share code, notes, and snippets.

View printpythonyoutube's full-sized avatar

printpythonyoutube

  • Joined Sep 7, 2025
View GitHub Profile
@printpythonyoutube
printpythonyoutube / gist:d9aee2234a7cf44b746bd9937eb426f9
Created September 9, 2025 16:44
Python for Beginners: Create a Secure Password Generator 🔑 (Step by Step Tutorial)
# 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
@printpythonyoutube
printpythonyoutube / gist:c6787f5ab60252d02e3e328c35296e1f
Created September 8, 2025 20:25
Python for Beginners: Create a Simple Alarm Program ⏰ (Step by Step)
# 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: ")
@printpythonyoutube
printpythonyoutube / gist:51615b17cfa258fbd5bcfa257f015a2e
Created September 7, 2025 13:52
Python for Beginners: Create a Simple Shopping Ticket Program 🛒 (Step by Step Tutorial)
# 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