Advertisement
here2share

# brute_force_hello_world.py

Nov 18th, 2019
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. # brute_force_hello_world.py
  2.  
  3. import time
  4.  
  5. text = ""
  6. target = "hello world"
  7. for i in range(len(target)):
  8.     character = " "
  9.     while character != target[i]:
  10.         character = ord(character) + 1
  11.         character = chr(character)
  12.         print(text + character)
  13.         time.sleep(0.005)
  14.  
  15.     text += character
  16. print(text)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement