Hej Python!

Introduktion till Python

Hugo Bowne-Anderson

Data Scientist at DataCamp

Så här lär du dig

DataCamp-gränssnitt

Introduktion till Python

Python

guido-hba.png

  • Allmänt syfte: bygg vad som helst

  • Öppen källkod! Gratis!

  • Python-paket, även för datavetenskap

    • Många användningsområden och fält
Introduktion till Python

IPython Shell

Kör Python-kommandon

ipython_shell.png

Introduktion till Python

IPython Shell

Kör Python-kommandon

ipython_shell_highlighted.png

Introduktion till Python

IPython Shell

 

Beräkningar i DataCamps IPython Shell

Introduktion till Python

Python-skript

  • Textfiler – .py

  • Lista med Python-kommandon

  • Liknar att skriva i IPython Shell

Python-skript i DataCamp

Introduktion till Python

Python-skript

GIF: skriver 4 + 5 i skriptet och klickar på Skicka in svar. Ingen utdata visas.

Introduktion till Python

Python-skript

python_script_print.gif

  • Använd print() för att generera utdata från skriptet
Introduktion till Python

DataCamp-gränssnitt

Skärmbild av DataCamps gränssnitt

Introduktion till Python

Nu kör vi en övning!

Introduktion till Python

Preparing Video For Download...