Question: Please check my code and tell me what I am doing wrong, I keep getting a whitespace error in zybooks. It's saying that my last
Please check my code and tell me what I am doing wrong, I keep getting a whitespace error in zybooks. It's saying that my last two lines have a whitespace before the semicolon. How do I take that whitespace away, if there is one?
favoriteColor = input('Enter favorite color: ') petsName = input('Enter pet\'s name: ') number = input('Enter a number: ')
print('You entered: {} {} {}'.format(favoriteColor, petsName, number))
password1 =favoriteColor+"_"+petsName password2=number+favoriteColor+number print(' First password:',password1) print('Second password:',password2)
print(" Number of characters in",password1,':',len(password1)) print("Number of characters in",password2,':',len(password2))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
