Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("How many apples do you want?")
- apples=input()
- try:
- if int(apples)<0:
- print('You entered a negative number try positive')
- else:
- if int(apples)>=5:
- print('That are lot of apples')
- else:
- print('That is ok to eat')
- except ValueError:
- print('You did not entered a number')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement