How I can get number from user that only includes 5 and 6? I try for loop but it's not work,also try convert the input to string,also no work.how to do?
Number = int(input('enter num')
for x in number:
if 4<x<7:
print('ok)
else:
print ('no')
print
statement or two for tracing your variable values. It's hard to write your own program when you aren't 100% sure what values you have.