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 want to be like you when I grow up
Nice!
The expected value for Douglas Adam's description in the first test needs updating:
-> should now be: "English author and humourist (1952–2001)" as per the "en" value in JSON response now.
Can you please fix that so we can submit?
(All other test cases are good and passing though. I'm not getting the issue mentioned by Iron Fingers, below.)
Yep, the contents of wiki are very different and tests are not passing. Too bad, because this kata is very real-life unlike most of them here.
we should have a downvote menu
Hi Terranovafel, Welcome to Codewars!
Looking at your attempted solution, you basically have the right approach.
However, note that the input object is passed as an argument to a function (named
total_bytes
in this kata) and you should return the result from there.You can also read here on how to write a solution: https://docs.codewars.com/training/training-example#writing-a-solution
Initial setup:
The instructions read as if it is going to give me an object to test the size of, it does not. How am I suppose to solve this without the objects or input of the objects. I wrote a script that will give you the bytes of any object. I tried converting all the example objects into bytes. Tried putting the bytes as an input, Where do i get the objects it says it will provide?
fixed in new fork
👍
This comment is hidden because it contains spoiler information about the solution
Sepuhhhh
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 sentence is wrong: "This might be useful for sending something over a network, where you need to represent the memory size the item takes up." Amount of memory a python object takes in a running program, and amount of memory this data would take in an HTTP request, for example, are completely different things.
Loading more items...