Advertisement
Guest User

Untitled

a guest
Jun 29th, 2021
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. a = "LTR"
  2. b = "0D"
  3. c = "S1"
  4.  
  5. inp = input("> ")
  6.  
  7. if len(inp) != 17:
  8. print("Wrong size.")
  9. exit()
  10.  
  11. if (inp[0] == a[2] and inp[1] == a[1] and inp[2] == a[0]) and inp[3] == "{" and \
  12. ((inp[4] + inp[5]) == b[::-1]) and (inp[6] == "N" and inp[7] == "T" and inp[8] == chr(95)) and \
  13. (inp[9] + inp[10] == b[::-1]) and (inp[11] + inp[12] + inp[13] == "_TH") and (inp[14] + inp[15] == c[::-1]) and \
  14. (inp[16] == "}"):
  15. print("Good job.")
  16. else:
  17. print("Flag is incorrect.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement