def SignupDetails(): 
  Name= input("enter name: ")
  Age= int(input("enter your age: "))
  yeargroup= input("Enter your year group: ")
  username= Name[0:3]+str(Age)
  print("username: ",username)
  Password= input("please enter a password: ")
  Password2= input("re-enter your password to confirm: ")
  if Password != Password2:
    print("the passwords do not match")
i want to create a while loop that will make the user keep entering a password until both Password and Password2 match. Any help will be appreciated
 
    