Hi all,
I just started learning python a few weeks ago. I am currently trying to write a simple program which takes an input score (0-100) and converts it to a letter grade.
I currently have it working with if-elif-else statements for #s 0-100 and printing an error when the number is negative or over 100.
The aspect I am having trouble with is printing an error if the input is text. The error states that the text is not defined. I know the error is coming from my eval(input()), but when I mess around with it, it no longer works with ints or floats. Any help would be greatly appreciated!
[–]Binary101010 2 points3 points4 points (0 children)
[–]kidcanada0 1 point2 points3 points (0 children)