Ad
  • Custom User Avatar

    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:

    # return the total byte size of the object. 
    def total_bytes(obj):
        pass
    
  • Default User Avatar

    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?