Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("Welcome to the PASSWORD game of "Jojo"!")
- Password = input( "Please enter a password (Enter q to quit): ")
- #When the user inputs "q" then the Game will end.
- q = quit
- if Password == q:
- quit
- print("Thank you for playing this PASSWORD game. Hope to see you again! ")
- # Start of code.
- while (Password != q):
- print("The password you just entered is", Password)
- countsymbols = 6 # of 6 special symbols $ % @ ! ? *
- countsymbols += pw.count('$')+pw.count('%')+pw.count('@') +pw.count('!') +pw.count('?')
- if countsymbols #I NEED HELP HERE
- print( "Your password is not secure since it contains none of 6 special symbols: $ % @ ! ? *")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement