I start learning python, and in an exercise it asks to create a program that only postive intger number will be accepted.
This is what I have written:
while True:
number = input('Type an integer positive number: ')
try:
number = int(number)
break
except ValueError:
print ('Value not accepted')
break
How can I add in my block the >0 check ?