Simple Projects in python to play around
Welcome to the "Guess the Number" game! This simple Python script generates a random number between 1 and 100, and the user has to guess the correct number. The game provides feedback after each guess, guiding the user to find the target number.
-> Run the script in a Python environment. -> The program will generate a random target number between 1 and 100. -> Enter your guess when prompted or type "QUIT" to exit the game. -> The program will provide feedback on whether your guess is correct, too small, or too big. -> Keep guessing until you find the correct number or choose to quit.
Make sure you have Python installed on your machine. You can download Python from python.org.
python3 guess_the_number.py
Guess the number or type QUIT to exit: 50 Guess is too small. Guess a bigger number. Guess the number or type QUIT to exit: 75 Guess is too big. Guess a smaller number. Guess the number or type QUIT to exit: 60 Guess is too small. Guess a bigger number. Guess the number or type QUIT to exit: 70 SUCCESS! You guessed the correct number.
This Python script serves as a simple random password generator. It generates a secure password with a default length of 8 characters, combining uppercase and lowercase letters, digits, and punctuation symbols.
You can customize the length of the generated password by modifying the password_len variable in the script.
python3 generate_password.py