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 know that the input is set only to str and int, therefore the '!=' will do fine here. But, I think that for scalability reasons it would be better to do the comparison strictly with ints, e.g. 'if type(x) == int: ... ' this way if for some reason in the future the list contains other things like booleans, dicts, tuples, or an inside list, it will still work. Great solution btw, it was my first thought also!
Easily readable!
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 did this and when I tried to call the function, it raised a TypeError because int is not iterable. What do I do?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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 also write the same code with different names, but everytime I get unexpected EOF while parsing error. But the code is working on PyCharm. How can I pass correct this error?
This is the first solution that makes sense to me, thank you.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
very sorry bout this
flagged it now
Thanks a lot for your help!
think about the spoiler flag, when you're posting somewhat "critical" informations about/under a solution, please. ;)
+
is obtained putting the plus between two "back ticks": ``` (three of them, here)for code: two new lines, three back ticks, new line, your code, new line three back ticks:
Loading more items...