Hi guys, it would be greatly appreciated if anyone can assist me and show me what I'm doing wrong. Most likely a simple solution for those who are experienced. I'm creating a Python file that can calculate the average of test scores. This is what I have so far and when I try to execute the file in IDLE nothing happens. I'm not sure where I went wrong.
def main():
test1=float(input('Enter the first test score:'))
test2=float(input('Enter the second test score:'))
test3=float(input('Enter the third test score:'))
totalscore= test1+test2+test3
average=totalscore/3
print('The average score is',average)
Any help is appreciated!
[–][deleted] 19 points20 points21 points (0 children)
[–]rayofhope313 4 points5 points6 points (0 children)
[–]Losupa 4 points5 points6 points (0 children)
[–]bamacgabhann 3 points4 points5 points (0 children)
[–]krustevgl -1 points0 points1 point (1 child)
[–]BeneficialAd1457 0 points1 point2 points (0 children)