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)
Comments
Leave a comment