We use Python 3.6

go back Level: Intermediate (img: IM / score: 3) level Bite 13. Convert dict to namedtuple/json

33 out of 33 users completed this Bite ...
Will you be Pythonista #34 to crack this Bite?
Average Bite difficulty 1-10 rating: 3.67
» You can do it! 😌

Write a function to convert the given blog dict to a namedtuple.

Write a second function to convert the resulting namedtuple to json.

Here you probably need to use 2 of the _ methods of namedtuple :)

Github login button