Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if str[i] != str[i-1]:
- str_new = str_new + str[i]
- elif str[i] == 0:
- str[i] = str[i] + 2
- print str_new
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement