We've already used the random module, but this time we'll use it with strings ( a list of words). 

Since this is your first time making a list, I'll give you the code below needed for line 5. You're welcome!

colors = ["red", "blue", "green", "purple", "orange", "pink", "violet", ]

Here's what we'll be doing in this project:

# make a list of possible colors for random selection

# set the variable angle at 90 degrees

# create circle function that draws 5 circle that increase in size

# create turn function that turns the pen direction based on the angle

# write a For Loop that calls the Circle and Turn functions multiple times

 

 
 

import random
import string
print("Welcome to the Generator")
email = input("Enter your email address: ").strip()
if "@" in email:
 username_base = email.split('@')[0]
 code = random.randint(1000,9999)
 username = username_base + str(code)
 print("Your generated username", username)
else:
 print("invalid email address")
 exit()
length = int(input("\nHow long should password be?"))
chars = string.ascii_letters + string.digits + string.punctuation


RELATED ARTICLES