Jul-20-2023, 05:37 PM
(This post was last modified: Jul-20-2023, 05:38 PM by deanhystad.)
@DeaDEyE, the ">" explains why some grades are off, but does not explain why entering 85 or 80 does not appear to produce any output. I am stumped. When I run the program it produces output (the wrong output) when I enter 85 or 80. Or am I mistaken about what is meant by this in the OP:
From what I can find about the spyder warning, it appears to only affect debugging. Python code runs correctly. What happens if you run you code outside of spyder?
Output:runfile('C:/Users/hp/Spyder/What is my Grade.py', wdir='C:/Users/hp/Spyder')
Enter the Grade: 85
runfile('C:/Users/hp/Spyder/What is my Grade.py', wdir='C:/Users/hp/Spyder')
Enter the Grade: 80
runcell(0, 'C:/Users/hp/Spyder/What is my Grade.py')
Enter the Grade: 75
Entering 85 should print "You Got an BB! Congrats!" and entering 80 should print "You Got an CB! Congrats!". These are both incorrect, but there should be a message printed.From what I can find about the spyder warning, it appears to only affect debugging. Python code runs correctly. What happens if you run you code outside of spyder?