Author image

Muhammad Hashir Hassan

3 Posts Pakistan Twitter Website
I am a software engineer currently working on web/mobile app development. I try to make everyday count by learning or by teaching. Either way, I am learning. https://www.linkedin.com/in/abouthashir/

Padding Strings in Python

Introduction

String padding refers to adding, usually, non-informative characters to a string to one or both ends of it. This is most often done for output formatting and alignment purposes, but it can have useful practical applications.

A frequent use case for padding strings is outputting table-like information in a

Continue Reading

Guide to String Interning in Python

Introduction

One of the first things you encounter while learning the basics of programming is the concept of strings. Similar to various programming languages, Python strings are arrays of bytes representing Unicode characters - an array or sequence of characters. Python, unlike many programming languages, doesn’t have a distinct

Continue Reading