Jan-16-2019, 06:48 PM
Entering the number of classes would use input(). However, input returns a string, which you would need to convert to an integer with int(). Then you would start with an empty list of grades, make a range() of the number of classes, and loop through that with a for loop. Each time through the loop, input() the next grade and append it to the list of grades.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures