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.
In fact cannot be smaller than 1, not 0. So should be "<= 0", due if in a test you pass a 0º angle it won't enter to the first condition but give you a result anyway, but an angle can't be 0, this is a line, right?
its nice
I think @AndrewB31415 was suggesting that there is a different approach that doesn't require iterating through a string of the input (*see his solution). But if you use this approach then you do need to convert the input number to an iterable.
good trial
that's not really necessary, seeing how it was stated that only positive number would be given...
The function can only return one thing; once it gets to a return statement, the function is done being executed.
Yes you can check mine
Hi!
Can you please tell me why elif is not needed here? I've seen it a lot in tasks like this when I learned how to code im ny school
Well it is an infinit loop. The only thing that makes it NOT infinit is that return also acts as break.
Which makes it a potential bug.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
hardcore
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
why would you defin your own haystack list?
Loading more items...