Python Developer Question:

Download Job Interview Questions and Answers PDF

How to convert a number to a string?

Python Developer Interview Question
Python Developer Interview Question

Answer:

In order to convert a number into a string, use the inbuilt function str(). If you want a octal or hexadecimal representation, use the inbuilt function oct() or hex().

Download Python Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know how Python is interpreted?Explain me what is unittest in Python?