# Challenge 18 - Choose a Username
username = input("Choose a username: ")
if not username.strip():
    print("Rejected: the username cannot be blank.")
elif len(username) < 6:
    print("Rejected: use at least 6 characters.")
elif " " in username:
    print("Rejected: spaces are not allowed.")
else:
    print("Username accepted")
