<filename>number7.py
num=int(input('enter the number'))
while num>0:
    if num%10==7:
        print("yes")
    else:
        print("no")
    break
<filename>number7.py
num=int(input('enter the number'))
while num>0:
    if num%10==7:
        print("yes")
    else:
        print("no")
    break