Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

More Books

Students also viewed these Databases questions