Password check if it matches is 8 chars or longer has atleast one capital and has 2 or more numbers:
import repassword_fill = Falsewhile not password_fill:
password = input('Please input password: ')
if re.search(r'[A-Z]+', password) and re.search(r'[0-9]{2,}', password) and len (password) >=8:
print('That password is valid')
print('Invalid password. Please try again.')