Explicit type conversion python part 1

PHOTO EMBED

Wed Aug 02 2023 14:59:56 GMT+0000 (Coordinated Universal Time)

Saved by @pythonHub #python #python-hub #basics

num_str = "10" #it is a string because it is inside quotes
num = 10.1 #it is an float
num_result = num_str + num
print(num_result)
print(type(num_result))
content_copyCOPY