Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I'm also getting confused. As I know changing a variable's value in a function doesn't affect the variable outside of the scope. For that we use the global command.
In this case is ok, since the parameters are integers and float numbers, so changing them inside the function will not change the value in the caller. If instead this was a list, a set, or other types that are passed as refrences then changing the value inside the function could cause side effects outside the function
This comment is hidden because it contains spoiler information about the solution
Sure. You can modify its name.
Something I've seen mention of but want to confirm. Is it okay to modify a parameter passed to the function or should I be assigning its value to a new variable and modifying that. Just want to make sure I'm getting into a best practices habbit even if my code isn't very pythonic yet.