I am new to python and am just trying to make my first program to compute what someone needs to get on their final to obtain their target grade (similar to gpahub https://gpahub.net/final-grade-calculator). I have a formula that works but cannot seem to call the arguments within the function without running into an error. As I said, I just started learning python so I am sure this is just a simple mistake. Any help would be greatly appreciated.
Here is my code thus far in Python 3:
total = 0 q = 1 score = input("Enter a score:") while score != "stop": q += 1 total = total + int(score) avg = total / q print(avg)