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'd say the two line answer is better practice than the single line version above.
I did the same but one-lined. In the other hand and IMHO it's not good practices create variables with names reserved by Python, even if there seems to be no risk.
nice basic
That would make sense considering how bad it is
It's a chatgpt answer
blud just violated this man lmfao
This comment is hidden because it contains spoiler information about the solution
good answe thoo
No, you didn't. Your code had multiple major issues.
For some reason you removed the
def
from the beginning of the declaration, this is basic day 1 Python. Also there were missing colons in two places that are critical to syntax, otherwise the solution set up crashes. Finally, even if all that was right, you were printing the output instead of returning a value.Otherwise, yeah, it was exactly the same.
i wrote the same thing and it did not accept my answer!!!!!!!!!!!!
This comment is hidden because it contains spoiler information about the solution
Could anyone provide a little feedback into the thinking that resulted into this solution. Thanks
Nice!
This is quite a long solution don't you think?
Very readable with the most obvious use of the math library.
Loading more items...