Answer:
favorite_color = input('Enter favorite color:\\')
pet_name = input("Enter pet's name:\\")
number = input('Enter a number:\\')
print('You entered:',favorite_color+' '+pet_name+' '+number)
password1 = favorite_color+'_'+pet_name
password2 = number+favorite_color+number
print('\\First password:'+' '+password1)
print('Second password:'+' '+password2)
print('\\Number of characters in '+password1+': '+str(len(password1)))
print('Number of characters in '+password2+': '+str(len(password2)))
Step-by-step explanation:
Notice on the pet name I used quotes instead of parenthesis because so I can use the comma on pet's.
This solution worked for me.