So here I am again improving on my online login thingy.
Anyways I've got it all mostly working but I just cant seem to get the password authentication fully working. It will tell people the password is invalid if it is less than 7 characters but I want it to do the same if there isn't a capital letter in the password.
I spent the last 20 minutes looking through the web and trying lots of different things and none seem to have worked, the minimum numbers thing has though. Anyways heres my code atm:
password = input("Enter a password: ")
capital = password.upper().isupper()
while len(password) < 7 and capital is False:
print("Your password must be at least 7 characters long including A capital letter")
password = input("Enter a password: ")