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
import random | |
import string | |
def generate_password(length=16, include_digits=True, include_symbols=True, include_upper=True, include_lower=True): | |
# Define possible characters based on user preferences | |
characters = "" | |
if include_upper: | |
characters += string.ascii_uppercase | |
if include_lower: |
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
import random | |
import time | |
def clear_screen(): | |
print("\033c", end="") # Clear the console | |
def main_menu(): | |
print("\nWelcome to the Ultimate Mini-Games Collection!") | |
time.sleep(3) # Wait for 3 seconds before clearing the screen | |
clear_screen() |