grandfathermagic

secret message

Apr 25th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. secret_message = 'TzH?!xC7zAhSH[n[m$_;e>?6: YiT< 8)4=5Kv\r>p4/{b2vw>fa}^~HNH}sms<_y{`KuK!s9Nt\'Ckl]{wlEMsmP&,uoDx\rW zVvvr%M+RXNzE d/cH#hq;}) BR`eBp|;BirGX\x0cK%Su,s("BX6sMa. 1MZ|*\x0b\x0bsvA9~:%=p;y^v#l.\n\r)63\noLz]{,|q|!cxd\'Eik;VVa.vj\x0c;>c\t-dw8Fr0TRUro|<t-SV|Z['
  2. string = "password"
  3. i = 1
  4. password_try = 0
  5. while string not in secret_message[::i]:
  6.     password_try = secret_message[::i]
  7.     print(f"When I try and jump {i} staps this is what I am getting: {secret_message[::i]} ")
  8.     i = i + 1
  9.    
  10. print(f"And the answer is when I jump {i} steps : {secret_message[::i]} ")
Add Comment
Please, Sign In to add comment