Expose two functions
bencodetake one object as a parameter and returns
bytesas a parameter and returns an object.
objects may be of
You have to follow the
bencode encoding and decoding algorithm, see
Wikipedia bencode page.
You'll have to encode and decode strings, use "UTF-8" everywhere and explicitly.
You may code other
helper functions in your module,
functions to help
bdecode in their work. You also can
store module variables and use them but only
for you to use.
There's no corrections yet, hit the `Submit` button to send your code to the correction bot.