Integer to String

In this lesson, you will learn how to convert an integer to a string in Python.

We'll cover the following

In this lesson, we will solve the following problem:

You are given some integer as input, (i.e. … -3, -2, -1, 0, 1, 2, 3 …) and you have to convert the integer you are given to a string. Examples:

    Input: 123
    Output: "123"
    Input: -123
    Output: "-123"

Note that you cannot make use of the built-in str function:

Get hands-on with 1200+ tech skills courses.