Header Ads

Define a function that can convert a integer into a string and print it in console In Python

Define a function that can convert a integer into a string and print it in console.

Define a function that can convert a integer into a string and print it in console In PythonHints:

Use str() to convert a number to string.
Solution:
def printValue(n):
            print str(n)
printValue(3)

            
Powered by Blogger.