Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/local/bin/python3.7
- # -*- coding: utf-8 -*import
- year = input()
- current_year = year
- found_year = True
- while True:
- current_year = int(current_year) + 1
- found_year = True
- for first_index in range(0, len(year)):
- for second_index in range(first_index + 1, len(year)):
- first_digit = str(current_year)[first_index]
- second_digit = str(current_year)[second_index]
- if first_digit == second_digit:
- found_year = False
- break
- if found_year:
- print(current_year)
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement