Log in or register to post comments In order to convert a number into a string, use the inbuilt function str(). If you want an octal or hexadecimal representation, use the inbuilt function oct() or hex(). Tags Python Interview Questions