hello p y thon
play

Hello P y thon ! IN TR OD U C TION TO P YTH ON H u go Bo w ne - - PowerPoint PPT Presentation

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


  1. 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

  2. Ho w y o u w ill learn INTRODUCTION TO PYTHON

  3. 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

  4. IP y thon Shell E x ec u te P y thon commands INTRODUCTION TO PYTHON

  5. IP y thon Shell E x ec u te P y thon commands INTRODUCTION TO PYTHON

  6. IP y thon Shell INTRODUCTION TO PYTHON

  7. 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

  8. P y thon Script INTRODUCTION TO PYTHON

  9. P y thon Script Use print() to generate o u tp u t from script INTRODUCTION TO PYTHON

  10. DataCamp Interface INTRODUCTION TO PYTHON

  11. Let ' s practice ! IN TR OD U C TION TO P YTH ON

  12. 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

  13. 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

  14. 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

  15. Reprod u cibilit y height = 1.79 weight = 68.7 bmi = weight / height ** 2 print(bmi) 21.4413 INTRODUCTION TO PYTHON

  16. Reprod u cibilit y height = 1.79 weight = 74.2 # <- bmi = weight / height ** 2 print(bmi) 23.1578 INTRODUCTION TO PYTHON

  17. P y thon T y pes type(bmi) float day_of_week = 5 type(day_of_week) int INTRODUCTION TO PYTHON

  18. 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

  19. 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

  20. Let ' s practice ! IN TR OD U C TION TO P YTH ON

Recommend


More recommend