The problem with using "A-" as a variable name is that it is illegal.
You can create a variable A_minus without any problem, but you don't want the user to be inputting your variable names anyway.
You will want to take their input as a string "A-" and use that to find the appropriate point multiplier.
This seems custom aligned for a dictionary.
gradepoints = {}
gradepoints["A"] = 4.00
gradepoints["A-"] = 3.70
# put the rest of the relationships here
# There is an easier way to initialize dictionaries,
# feel free to find it and use it
Then you can use the user input to 'index' into the dictionary to get the point multiplier.
Try to use the idea in more of your own code and post any problems you find.
Murtan
Practically a Master Poster
671 posts since May 2008
Reputation Points: 344
Solved Threads: 116