Advertisement
Mirnijat

Eyni Reqem

Mar 10th, 2019
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. num = int(input())
  2. result = "Yox"
  3.  
  4. while num>0:
  5.     digit = num%10
  6.     numCopy = num//10
  7.     while numCopy>0:
  8.         rem = numCopy%10
  9.         if digit == rem:
  10.             result = "He"
  11.             break
  12.         numCopy//=10
  13.     num//=10
  14.  
  15. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement