Use ( ) in calculation : Type Conversion « Data Type « Python






Use ( ) in calculation

Use (  ) in calculation
a = 3           # name created
b = 4


print b / (2.0 + a)   # same as (4 / (2.0 + 3))

           
       








Related examples in the same category

1.Mixed-type conversionsMixed-type conversions