Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 429 Bytes

File metadata and controls

23 lines (16 loc) · 429 Bytes

Convert a Number to a String!

Description:

We need a function that can transform a number (integer) into a string.

What ways of achieving this do you know?

Examples (input --> output):

123  --> "123"
999  --> "999"
-100 --> "-100"

Solution:

def number_to_string(num):
    return str(num)

Codewars source link