Pedro Henrique Alves Cruz’s Post

A Python tip that helped me write cleaner and faster code: use collections.defaultdict instead of checking keys manually. #python #softwareengineering #programming

  • text

I was curious to see where we'd insert the parameter for the default value on the defaultdict declaration. But that's cool

Like
Reply

It's very useful during DSA exercises

See more comments

To view or add a comment, sign in

Explore content categories