Using Arithmetic Operators on Python Strings

Python lets developers use high-level syntax to perform robust string operations via arithmetic operators. There are some restrictions as well as some common pitfalls. Uncovering some of each will help avoid application errors and in some cases even lower memory use!

Zack West
alpharithms
Published in
8 min readJul 7, 2022

--

python arithmetic string operations by Alpharithms
Image: alpharithms

--

--

Zack West
alpharithms

Entrepreneur, programmer, designer, and lifelong learner. Can be found taking notes from Mother Nature when not hammering away at the keyboard.