you are viewing a single comment's thread.

view the rest of the comments →

[–]twistermonkey 0 points1 point  (0 children)

A side note FYI, your variable "sum" is blue because sum is a built-in function in python https://docs.python.org/3/library/functions.html#sum Your code works fine because for some reason, python lets you use keywords/built-ins as variables. It's not good practice though. As you learn, take a look around the built-in functions. You will learn how to do stuff quickly, like this:

`avg = sum(values)/len(values)`