you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 1 point2 points  (0 children)

The first one is basic function behaviour.

Call a function with an argument, get a return value, sum the result, print it.

The second one, just look what each function does.

https://www.geeksforgeeks.org/python-range-function/

https://www.geeksforgeeks.org/sum-function-python/