You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Any python interpreter can be used as a calculator:3+5*4# Lets save a value to a variableweightkg=60print(weight_kg)
# Weight0 = valud# Oweight = invalid# weight and Weight are different# Types of data# There are three common types of data# Integer numbers# floating point numbers# Stringsweight_kg=60.3# Use variables in pythonweight_lb=2.2*weight_kgprint(weight_lb)
# Let's add a prefix to our patient IDpatient_id='inflam_'+patient_idprint(patient_id)
# Let's combine print statementsprint(patient_id+'weight in kilograms:'+weight_kg)
# We can call a function inside another functionprint(type(60.3))
print(type(patient_id))
# We can also do calculations inside the print functionprint('weight in lbs:', 2.2*weight_kg)
weight_kg=65.0print('weight in kilograms is now:', weight_kg)