Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. print ("Welcome to the PASSWORD game of "Jojo"!")
  2.  
  3. Password = input( "Please enter a password (Enter q to quit): ")
  4.  
  5. #When the user inputs "q" then the Game will end.
  6. q = quit
  7. if Password == q:
  8. quit
  9. print("Thank you for playing this PASSWORD game. Hope to see you again! ")
  10.  
  11. # Start of code.
  12.  
  13. while (Password != q):
  14. print("The password you just entered is", Password)
  15.  
  16. countsymbols = 6 # of 6 special symbols $ % @ ! ? *
  17.  
  18. countsymbols += pw.count('$')+pw.count('%')+pw.count('@') +pw.count('!') +pw.count('?')
  19.  
  20. if countsymbols #I NEED HELP HERE
  21.  
  22. print( "Your password is not secure since it contains none of 6 special symbols: $ % @ ! ? *")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement