Playful Python

Python tips and tricks

⌘K
Sign In Portal Icon Subscribe
⌘K
Sign In Portal Icon Subscribe
Playful Python
All announcement series-wordcountproblem standard-library programming-style functions series-functions abstractions decorators pyscript series-pyscript hands-on programming monthly-roundup video review
standard-library

Python and Abstractions

A programming language is low level when its programs require attention to the irrelevant
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 23, 2022
series-wordcountproblem

Implementing word transformations

In the previous articles covering the word count problem so far, we have tried a variety of approaches to write a function to count the number of times a word appears in a sentence. Now let us attempt the bonus part of it.
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 20, 2022
series-wordcountproblem

The collections module

Where we look at two data structures - defaultdict and Counter - supplied in the python standard library
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 18, 2022
series-wordcountproblem

The overlooked "get" method of dictionaries

Python dicts have a get method. How could it help us?
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 17, 2022
series-wordcountproblem

LBYL vs EAFP

In this article, we will look at the word count problem through the lens of two coding styles: Look before you leap (LBYL) vs Easier to Ask for Forgiveness than Permission (EAFP)
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 16, 2022
series-wordcountproblem

The Word Count problem

I really love this problem because there are so many things to explore and learn about Python here. In this, and the next few articles, we will explore some of the dimensions of this problem.
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 15, 2022
series-wordcountproblem

The beauty of negative indexing

This might be one of the smallest, yet most beautiful features in Python: negative indexing. I'm still surprised why other languages haven't copied this feature because it such a simple feature, yet makes such a huge difference.
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 15, 2022
Hi
announcement

Hi

Welcome to Playful Python!
Siddharta Govindaraj
Siddharta Govindaraj
• 4 years ago Apr 12, 2022
Playful Python

Subscribe to our newsletter

Be the first to know about new posts and updates

Subscribing...
Your magic link is sent.
Please check your email.
Failed to send the magic link.
Please refresh the page and try again.

Silver Stripe Software Pvt Ltd