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.
very witty
Why is creating a new object successful for this Kata whereas if chars[index] = chars[index].upper() is used all outputs are Uppercase?
cool, thanks :)
but it does not work in the real world right?
i think its a bit confusing
The tests call your function.
how does it work?
dont you actually have to call the function?
Here's a quick breakdown comparing:
x = y
x = y[:]
x = y.copy()
https://www.programiz.com/python-programming/methods/list/copy
yes,
[:]
creates a new objectYes, the last is another reference to the same list, not a copy at all.
Is there difference between copy = chars[:] and copy = chars?
How do you guys get the list of attributes for an object in Python. I am trying to use dir() function to get the list of attributes, but I am not sure how to use it in this enviroment. Would appreciate any help.
Yes it has nothing to do with mean. This was create to calculate Statistical Mode of a data set. I did not find many problems in statistics, that was the main reason to create this problem. I would appreciate if you can share some of the duplicates and help to create random tests.