Docsity

Python apuntes de curso de python en diapositivas, Apuntes de Desarrollo de Software

Vista previa parcial del texto

¡Descarga Python apuntes de curso de python en diapositivas y más Apuntes en PDF de Desarrollo de Software solo en Docsity!

Hello Python!

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

How you will learn

IPython Shell

Execute Python commands

IPython Shell

Execute Python commands

Python Script

Text les - .py List of Python commands Similar to typing in IPython Shell

Python Script

DataCamp Interface

Let's practice!

Variable

Specic, case-sensitive name Call up value through variable name 1.79 m - 68.7 kg height = 1. weight = 68. height

Calculate BMI

height = 1. weight = 68. height

BMI = 68.7 / 1.79 ** 2

weight / height ** 2

bmi = weight / height ** 2 bmi

height 2 weight

Reproducibility

height = 1. weight = 74.2 # <- bmi = weight / height ** 2 print(bmi)

Python Types

type(bmi) float day_of_week = 5 type(day_of_week) int

Python Types (3)

2 + 3 5 'ab' + 'cd' 'abcd' Dierent type = dierent behavior!

Let's practice!