Convert Integer number to String in Python

In this Python examples series of Python Basics tutorial for beginners, we will study and learn how to convert integer number to String in Python.

Use of str() function

In Python, any integer can be converted to String with str() function.


Syntax of str()



  • str() is function name.
  • value is integer who need to be converted into Python String.


Examples of Integer to String conversions:

Let’s see how we can convert integer to String in Python by taking an example.


print("number is of type: ",type(number))


print("str1 is of type: ",type(str1))



number is of type: <class 'int'>
str1 is of type: <class 'str'>



  • we have number variable whose value is 5.
  • we can check the type of number variable using type function in Python.
  • data type of number variable is integer.
  • Now we will use str() function to convert integer to String in Python.
  • After applying str() function and storing the result into new variable str1, we can check the data type of variable str1, which is String.
  • Hence, we successfully converted Integer number to String in Python

One thought on “Convert Integer number to String in Python”

Comments are closed.