Fortune Telling Collection - Free divination - Let's try five py students with hands.

Let's try five py students with hands.

Five-handed Python small project, including source code.

First, the game of stone, scissors and cloth.

Objective: To create a command-line game, where players can choose between rocks, scissors and cloth, and play PK with the computer. If the player wins, the score will be added until the end of the game and the final score will be displayed to the player.

Second, the random password generator.

Objective: To create a program that can specify the password length and generate a series of random passwords.

Tip: Create a string of numbers+uppercase letters+lowercase letters+special characters. Randomly generate a string of passwords according to the set password length.

Third, the dice simulator.

Objective: To create a program to simulate dice throwing. X Tip: When the user asks, use the random module to generate a number between 1 and 6.

Fourth, send emails automatically.

Goal: Write a Python script that can be used to send e-mail.

Tip: An e-mail library can be used to send e-mail.

Five, alarm clock

Goal: Write a Python script to create an alarm clock. Tip: You can use the date-time module to create an alarm clock and play a sound library to play sounds.