0
Need help to success the code
You are given a program with two inputs: one as password and the second one as password repeat. Complete and call the given function to output "Correct" if password and repeat are equal, and output "Wrong", if they are not.
4 Respostas
+ 7
♤♢☞ 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 ☜♢♤ , # there is nothing wrong with this code, just a try to optimize it:
def validate(password, repeat):
return password == repeat
password = input( )
repeat = input()
print(f'password validation is {validate(password,repeat)}!')
+ 6
Nobody can see your code, as it is a link to your code coach solution.
0
This is the problem given in that coach ---> You are given a program with two inputs: one as password and the second one as password repeat. Complete and call the given function to output "Correct" if password and repeat are equal, and output "Wrong", if they are not.
0
Here ----
password = input( )
repeat = input()
def validate(password, repeat):
if (password == repeat):
print("correct")
else:
print('wrong')
validate('john894', 'john895')