Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 537 Bytes

Convert_a_Number_to_a_String.md

File metadata and controls

43 lines (24 loc) · 537 Bytes

CodeWars Python Solutions


Convert a Number to a String!

We need a function that can transform a number into a string.

What ways of achieving this do you know?

Examples

number_to_string(123) /* returns '123' */
number_to_string(999) /* returns '999' */

Given Code

def number_to_string(num):
    # your code here

Solution

def number_to_string(num):
    return str(num)

See on CodeWars.com