Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string = "2" * 20 + "3" * 15 + "4" * 10
- print(string)
- while string.find("42") or string.find("32"):
- if (string.find("42")):
- string.replace("42", "51", 1)
- else:
- string.replace("32", "61", 1)
- print(string)
Advertisement
Add Comment
Please, Sign In to add comment