Advertisement
ayshan

repeated numbers

Mar 28th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. a=int(input())
  2. result="yox"
  3. while a>0:
  4. digit=a%10
  5. a1=a//10
  6. while a1>0:
  7. rem=a1%10
  8. if digit==rem:
  9. result="he"
  10. break
  11. a1=a1//10
  12. a=a//10
  13. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement