Example & Tutorial understanding programming in easy ways.

Which Python function is used to make a number as a string ?

We use str() function to do this 

program:

number=10

print(type(number))

s=str(number)

print(type(s))

output:

<class 'int'>

<class 'str'>

Read More →