In my python code, all the result is fine except the "total". Instead of giving me the sum of variables it is giving me sum of strings?
age = '23'
height = '6.25' #feets
weight = '70' #kgs
eyes = 'hazel'
teeth = 'white'
hair = 'brown'
print(f"Lets talk about {name}." )
print(f"He's {height} feet tall.")
print(f"He's {weight} kilos heavy.")
print("Actually that's not too heavy.")
print(f"He's got {eyes} eyes and {hair} hairs.")
print(f"His teeth are usually {teeth} depending on the coffee.")
total = age + height + weight
print(f"If I add {age}, {height} and {weight}, I get {total}.")
PS E:\python programs> python p4.py
Lets talk about vishwjeet.
He's 6.25 feet tall.
He's 70 kilos heavy.
Actually that's not too heavy.
He's got hazel eyes and brown hairs.
His teeth are usually white depending on the coffee.
If I add 23, 6.25 and 70, I get 236.2570.
Please take a look at my program.See in image
python program
Result
total = int(age) + int(height) + int(weight)float()these are basics in python.