Python - How to Output Object Properties in a Readable Format

preview_player
Показать описание
#Python #Shorts
In the last video, we've seen how to use the built-in "dir" function to get all of the object's attributes. The problem with that though is that it's not very readable. This is where another built-in function called "pprint" comes in!
It will display the list to us on a line per item, and if we have a dictionary object instead of a list that we want to see "prettified", it will also work!

-------------------------------------------------------------------------------------
Links:
Рекомендации по теме
visit shbcf.ru