Thank y'all! I figured out how to make the function work, but not with the Letter-to-number conversion I was trying to use. It didn't like the size of g when it was made of stings. So I just wrote g with the numbers instead of letter grades. Good enough...
Homework Statement
Write a user-defined function that calculates grade point average (GPA) on a scale of 0 to 4 ...
https://41.media.tumblr.com/4f5e8ee38181d7c584c234138f632714/tumblr_nmnhq9p8jo1usetlso1_1280.png
The Attempt at a Solution
I'm getting the error that "function definitions are...