SHARE
TWEET

Untitled

lalalalalalalaalalla Sep 22nd, 2019 16 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2.  
  3. n = random.choice(range(2, 10))
  4. s = ""
  5. qq = "qwertyuiopasdfghjklzxcvbnm"
  6. for i in range(n):
  7.     s += random.choice(qq)
  8. q = random.choice(range(1, 10))
  9. print(q, 1)
  10. for i in range(q):
  11.     t = random.choice(range(2))
  12.     br = random.choice(range(1, n))
  13.     if t == 0:
  14.         print(s[:br], end='')
  15.         print(random.choice(qq), end='')
  16.         print(s[br:])
  17.     else:
  18.         print(s[:br-1] + s[br:])
  19. print(s)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top