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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started