+ 1
What is wrong with this code?
Changing Password with python. https://code.sololearn.com/coSd8hLGCIjr/?ref=app
7 Answers
+ 1
x = '11112336'
y = input('Enter Your Password: \n')
if x==y:
t = input('Enter New Password: \n')
print(t)
u = input('Re-enter New Password:\n')
print(u)
if t==u:
print('Password change successful.')
else:
print('Sorry! Password didn\'t match.')
else:
print('Wrong Password')
+ 2
Hi Ali Kh
Remember that all inputs must be entered before hitting RUN on the Sololearn app.
Try inputs
11112336
17
17
RUN
+ 2
Rik Wittkopp , all is clear .. thanks
+ 1
Thank you bro. Much appreciated
+ 1
Jubaer đđ
+ 1
@Rik.. EOF error when applying your code
0
Ali Kh đđ