Python Program to convert int to string (Using f-string)

bookmark

n = 10  
  
# check  and print type of num variable  
print(type(n))  
  
# convert the num into string  
conv_n = f'{n}'  
  
# print type of converted_num  
print(type(conv_n))   


Output:

<class 'int'>
<class 'str'>