Python Strings 101

Master the basics

Dhanesh Budhrani
Towards Data Science
2 min readJan 22, 2020

--

Image from StockSnap in Pixabay

This post will be a very practical one, providing you with simple and quick tips to work with strings in Python.

String multiplication

Python allows multiplying not only numbers, but also strings! Repeat a string as simply as follows:

>>> "a"*3
'aaa'
>>>

--

--

Multidisciplinary software engineer. Constantly learning. Software Engineer@Wubook. MSc@DTU. BSc@UC3M. LinkedIn: https://www.linkedin.com/in/dhanesh-budhrani/