Hello P y thon ! IN TR OD U C TION TO P YTH ON H u go Bo w ne - Anderson Data Scientist at DataCamp
Ho w y o u w ill learn INTRODUCTION TO PYTHON
P y thon General p u rpose : b u ild an y thing Open so u rce ! Free ! P y thon packages , also for data science Man y applications and � elds Version 3.x - h � ps ://www. p y thon . org / do w nloads / INTRODUCTION TO PYTHON
IP y thon Shell E x ec u te P y thon commands INTRODUCTION TO PYTHON
IP y thon Shell E x ec u te P y thon commands INTRODUCTION TO PYTHON
IP y thon Shell INTRODUCTION TO PYTHON
P y thon Script Te x t � les - .py List of P y thon commands Similar to t y ping in IP y thon Shell INTRODUCTION TO PYTHON
P y thon Script INTRODUCTION TO PYTHON
P y thon Script Use print() to generate o u tp u t from script INTRODUCTION TO PYTHON
DataCamp Interface INTRODUCTION TO PYTHON
Let ' s practice ! IN TR OD U C TION TO P YTH ON
Variables and T y pes IN TR OD U C TION TO P YTH ON H u go Bo w ne - Anderson Data Scientist at DataCamp
Variable Speci � c , case - sensiti v e name Call u p v al u e thro u gh v ariable name 1.79 m - 68.7 kg height = 1.79 weight = 68.7 height 1.79 INTRODUCTION TO PYTHON
Calc u late BMI height = 1.79 68.7 / 1.79 ** 2 weight = 68.7 height 21.4413 1.79 weight / height ** 2 weight BMI = height 2 21.4413 bmi = weight / height ** 2 bmi 21.4413 INTRODUCTION TO PYTHON
Reprod u cibilit y height = 1.79 weight = 68.7 bmi = weight / height ** 2 print(bmi) 21.4413 INTRODUCTION TO PYTHON
Reprod u cibilit y height = 1.79 weight = 74.2 # <- bmi = weight / height ** 2 print(bmi) 23.1578 INTRODUCTION TO PYTHON
P y thon T y pes type(bmi) float day_of_week = 5 type(day_of_week) int INTRODUCTION TO PYTHON
P y thon T y pes (2) x = "body mass index" y = 'this works too' type(y) str z = True type(z) bool INTRODUCTION TO PYTHON
P y thon T y pes (3) 2 + 3 5 'ab' + 'cd' 'abcd' Di � erent t y pe = di � erent beha v ior ! INTRODUCTION TO PYTHON
Let ' s practice ! IN TR OD U C TION TO P YTH ON
Recommend
More recommend