In: Computer Science
#infinite loop to again asked for password and re-enter password till both the passwords are same
while True:
print('Enter Password') #ask user to enter password
string1 = str(input()) #take input in string1
print('Enter Password Again') #ask user to re-enter password
string2 = str(input()) #take input in string2
if (string1 == string2): #check if both the password are same or not
break #if same then break to come out of infinite loop
print('Well done!!!') #print Well Done to console if both the passwords matches
program scrrenshot
output screen shot
Please upvote if u like answer otherwise comment for clarification