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.
sorry accidentelly flagged your comment unflagged it.
i think it's because you did not check if bounce was equal to 1, which would cause an infinite loop, the same happened to me
Because if any of us are actually led to believe this is "Best Practice" and decide to use this code in a production environment or for an interview with Google, it would be bad.
I tried doing something similar, but an issue came up saying it took way to long and I had to use another solution. Maybe I could have optimized another part for it to work. Anyhow, good work.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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.
the language here is ambiguous, but it is assumed that we are talking about an entire window, hence if it goes above the window it will go down for a second viewing.
This comment is hidden because it contains spoiler information about the solution
Beautiful.
i don't understand why this got so many "best practices" votes
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
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.
🤣🤣
Loading more items...