var=input("Enter the password: ")aflag=0nflag=0sflag=0iflen(var)<4orlen(var)>19:print("INNVALID")else:foriinvar:ifi.isalpha():aflag+=1elifi.isnumeric():nflag+=1else:sflag+=1breakifaflag==0ornflag==0orsflag!=0:print("INVALID")else:print("VALID")
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Python