• “{}”.format()
    1. >>> num = 42
    2. >>> str_num = "{}".format(num)
    3. >>> print(str_num)
    4. '42'
    • str
    1. >>> num = 42
    2. >>> str_num = str(num)
    3. >>> print(str_num)
    4. '42'