SHARE
TWEET

06. Next Happy Year

a guest Sep 20th, 2019 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. year = int(input()) + 1
  2.  
  3. while True:
  4.     if len(set(str(year))) == len(str(year)):
  5.         print(year)
  6.         break
  7.     else:
  8.         year += 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top