How to Specify Data Types in Python

Liu Zuo Lin
Python in Plain English
5 min readNov 4, 2021

--

I recently had a client request that I help him fix and debug his Python code for some personal project. It was hell! — the code was messy and all over the place, there were no comments, and I spent a hell of a long time figuring out what each existing function does! Python is a dynamically-typed language, which means that we don’t have to specify data types when we create variables and functions. While this reduces the amount…

--

--