Lists in Python

Lists in Python – is a sequence data type. In a sequence, each element is assigned a sequence number or, an index. The index numbers…

str() vs repr() in Python

In this article, we would discuss the difference between str() and repr() in Python using the simplest of examples. Both of these are used to…

Code Comments in Python

In this article, we would discuss how to write single-line and multi-line comments in Python. Code commenting is practice of writing short description of the…

pow() function in Python

In this article, we would discuss pow() function in Python. We can use either exponentiation operator (**) or pow() function to calculate powers. In other…