-
Notifications
You must be signed in to change notification settings - Fork 82
/
Register.py
29 lines (24 loc) · 995 Bytes
/
Register.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Define an empty dictionary to store user registration information
user_data = {}
# Function to get user registration input
def get_user_info():
print("User Registration Form")
username = input("Enter your username: ")
email = input("Enter your email address: ")
password = input("Create a password: ")
# Store the information in the dictionary
user_data['username'] = username
user_data['email'] = email
user_data['password'] = password
# Function to display user registration information
def display_user_info():
print("\nUser Registration Information:")
print(f"Username: {user_data['username']}")
print(f"Email: {user_data['email']}")
# For security reasons, you should not print the password directly
# Instead, you can print a message like "Password saved securely."
print("Password: Password saved securely.")
# Get user registration information
get_user_info()
# Display user registration information
display_user_info()