You are viewing a single comment's thread. Return to all comments →
This is my code. I know this code is not optimized.
n = input() l = tuple(str(n)) for i in l: if int(i)+1 == 10: print(0, end='') else: print(int(i)+1, end='')
Seems like cookies are disabled on this browser, please enable them to open this website
Security - Message Space and Ciphertext Space
You are viewing a single comment's thread. Return to all comments →
This is my code. I know this code is not optimized.
n = input() l = tuple(str(n)) for i in l: if int(i)+1 == 10: print(0, end='') else: print(int(i)+1, end='')