Westonci.ca is the premier destination for reliable answers to your questions, provided by a community of experts. Ask your questions and receive detailed answers from professionals with extensive experience in various fields. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly Q&A platform.

Write a program that asks the user to enter in a username and then examines that username to make sure it complies with the rules above. Here's a sample running of the program - note that you want to keep prompting the user until they supply you with a valid username:

Sagot :

user_in = input ("Please enter your username: " )

if user_in in "0123456789":

print ("Username cannot contain numbers")

elif user_in in "?":

print ("Username cannot continue special character")

else:

print (" Welcome to your ghetto, {0}! ".format(user_in))