Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Get quick and reliable solutions to your questions from a community of seasoned experts on our user-friendly platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

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))