












Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!













I N T R O D U C T I O N T O P Y T H O N Hugo Bowne-Anderson Data Scientist at DataCamp
Execute Python commands
Execute Python commands
Text les - .py List of Python commands Similar to typing in IPython Shell
Speci c, case-sensitive name Call up value through variable name 1.79 m - 68.7 kg height = 1. weight = 68. height
height = 1. weight = 68. height
BMI = 68.7 / 1.79 ** 2
weight / height ** 2
bmi = weight / height ** 2 bmi
height 2 weight
height = 1. weight = 74.2 # <- bmi = weight / height ** 2 print(bmi)
type(bmi) float day_of_week = 5 type(day_of_week) int
2 + 3 5 'ab' + 'cd' 'abcd' Di erent type = di erent behavior!