QUESTION IMAGE
Question
question # 3
dropdown
how do you check to see if the user entered more than one character?
complete the code.
letter = input(\guess a letter\)
if > 1:
Step1: Use length function
In Python, to check the length of a string (in this case the input from the user), we use the len() function. The variable letter stores the user - entered input. We want to check if its length is greater than 1.len(letter)
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
len(letter)