Advertisement
Guest User

noob

a guest
Oct 26th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. if str[i] != str[i-1]:
  2.     str_new = str_new + str[i]
  3. elif  str[i] == 0:
  4.     str[i] = str[i] + 2
  5. print str_new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement