finderabc

05. Password Guess

Sep 23rd, 2020
770
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #1. read string
  2. #2. check is equal to s3cr3t!P@ssw0rd
  3. #3. print -> true (welcome) false (wrong pass)
  4.  
  5. input_text = input()
  6. if input_text == 's3cr3t!P@ssw0rd':
  7.     print("Welcome")
  8. else:
  9.     print('Wrong password!')
RAW Paste Data