r/learnpython • • 17h ago

Is Leetcode a good way to continue practicing/learning Python?

I'm not entry, but I'd like to continue becoming stronger in my skills.

22 Upvotes

28 comments sorted by

View all comments

6

u/Rudeus_Kino 17h ago

LeetCode is for practicing algorithms. Learning Python while doing so requires some effort. For instance, you could manually count character frequencies in a string, or you could use Counter but you have to know that it exists.

1

u/Expensive-Bear-1376 9h ago

Or you might want to do it semi-manually, call the string's count method for every allowed character.

1

u/Rudeus_Kino 9h ago

Yes, and transform string to a set yields allowed caracters. The decisions depend on knowledge of the language.