num_str = "10" #it is a string because it is inside quotes num = 10.1 #it is an float num_result = int(num_str) + num #telling python that num_str #is a number and to add it to num. print(num_result) print(type(num_result))
num_str = "10" #it is a string because it is inside quotes num = 10.1 #it is an float num_result = int(num_str) + num #telling python that num_str #is a number and to add it to num. print(num_result) print(type(num_result))