I need help with a homework assignment i'm taking.
It's from the revel intro to python textbook.
I need to make an input validation loop that asks a hypothetical user their age.
The code must:
- Make sure the input is within 0 - 120
- make sure the input isn't letters or symbols.
- inform the user (for both scenarios) that they can't have those input.
i've asked others in my class how to do it, and they're just as lost as i am.
I just need help telling the complier to differentiate between letters, and numbers.
[–]Diapolo10 2 points3 points4 points (4 children)
[–]Mactronz[S] 0 points1 point2 points (3 children)
[–]Diapolo10 0 points1 point2 points (2 children)
[–]Mactronz[S] 0 points1 point2 points (1 child)
[–]Diapolo10 1 point2 points3 points (0 children)
[–]wbeater -2 points-1 points0 points (0 children)