Nov-09-2017, 08:35 PM
Good try.
It is not usual in python to have a capital at the start of a variable name.
I've only had a quick look through your code, but I can't see where you've initialised your grade list (the results) in order to do any analysis on it, thus you are attempting to loop through an empty list. You need a line to set some test data for now.
Incidentally, with your menu, why bother converting to integer, just test for "0", "1", etc. The while loop can be simpler:
The part of your code outside of functions is a little hard to read. Might be worth moving code into more functions so that it is easier to follow the flow/logic.
It is not usual in python to have a capital at the start of a variable name.
I've only had a quick look through your code, but I can't see where you've initialised your grade list (the results) in order to do any analysis on it, thus you are attempting to loop through an empty list. You need a line to set some test data for now.
Incidentally, with your menu, why bother converting to integer, just test for "0", "1", etc. The while loop can be simpler:
while True:
and do a break
if not input:
(as an non-null string is True.The part of your code outside of functions is a little hard to read. Might be worth moving code into more functions so that it is easier to follow the flow/logic.
I am trying to help you, really, even if it doesn't always seem that way