# Author:  James Tam
# Version: November, 2013

# Learning concepts: useful functions that can be used in 
# conjunction with strings str(),int(),float()

a = 2
b = 2.5
c = a + b   # Addition
print("%d + %0.1f = " %(a,b), end="")
print(c)   

# Convert to string and then concatenate
c = str(a) + str(b)
print("'2' + '2.5' = ", end="")   
print(c)   

x = '3'
y = '4.5'

# Convert to numeric and then add
z = int(x) + float(y)
print("%d + %0.1f = " %(3,4.5), end="")
print(z)


