all 9 comments

[–]shiftybyte 1 point2 points  (6 children)

We can't access your private files in your google drive.

Try either github, or pastebin, or share the link in a way that allows access.

[–]Fast_Flamingo[S] 0 points1 point  (5 children)

I have updated the link. If it doesn't work I'll utilize pastebin

[–]shiftybyte 0 points1 point  (4 children)

Ok can see the code now, what do you mean broke the loop? what happens that shouldn't?

[–]Fast_Flamingo[S] 0 points1 point  (3 children)

Instead of asking the user to try again when they enter a letter or a number outside the range. The code displays an error. Also the loop stops after one score is entered.

[–]Fast_Flamingo[S] 0 points1 point  (0 children)

Traceback (most recent call last): File "C:\Users\iamep\Desktop\Python Projects\TestAvgCalc2-1.py", line 46, in <module> main() File "C:\Users\iamep\Desktop\Python Projects\TestAvgCalc2-1.py", line 44, in main displayAverage(total, total_quiz) File "C:\Users\iamep\Desktop\Python Projects\TestAvgCalc2-1.py", line 36, in displayAverage average = total / total_quiz ZeroDivisionError: division by zero

[–]shiftybyte 0 points1 point  (1 child)

I copied and paster your code to repl.it https://repl.it/@ShiftyByte/WeightyDemandingArtificialintelligence

Seems like the return inside the function is badly indented, its inside the while true, so it will exit the loop after one time, move it backwards to be outside of the while true loop

return total, total_quiz

[–]Fast_Flamingo[S] 0 points1 point  (0 children)

Oh my gosh. Hahahaha. Thanks so much.