I am using Sublime on a mac. When I try to run this script (command + B), it executes only partially (it will take in the input of two numbers, but it won’t print the result.
def main():
print("The program computer the average of two exam scores.")
score1, score2 = eval(input("enter two scores separated by comma: "))
average = (score1 + score2) / 2
print("The average of the scores is:", average)
main()
What am I doing wrong?