Question #97306

Enter your word: zebras
Enter a number: 62
Password not long enough.

Enter your word: newyorkcity
Enter a number: 892
Password: N@wyorkci+y892

Expert's answer

s = input("Enter your word: ")
n = input("Enter your number: ")
if len(s)<10:
    print("Password not long enough")
else:
    s = s.replace('e', '@')
    s = s.replace('t','+')
    s = s.capitalize()
    password = s+n
print(password)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS