Answer to Question #97306 in Python for yousif

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
1
Expert's answer
2019-10-25T09:35:48-0400
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS