I'm very new to python and code in general and I'm wondering how i can do something like this:
User enters string, computer checks if string is longer then 10 characters and if it is it asks for the user to enter a new string. This is what i have right now.
usernamelength = (len(username))
if usernamelength > 10:
return
else:
print("Hello, %s. Placeholder text." %username)
Sorry if i'm missing out something obvious, as i said earlier I'm new to this. Any help appreciated :)