Da zero a Python in 45 minuti - Andrea Colangelo -

66
Python Da zero a in 45 minuti Andrea Colangelo Ubuntu Developer, DEBIAN MAINTAINER We're open 2013, cesena – 9 novembre 2013

Transcript of Da zero a Python in 45 minuti - Andrea Colangelo -

Page 1: Da zero a Python in 45 minuti - Andrea Colangelo -

PythonDa zero a

in 45 minutiAndrea ColangeloUbuntu Developer, DEBIAN MAINTAINERWe're open 2013, cesena – 9 novembre 2013

Page 2: Da zero a Python in 45 minuti - Andrea Colangelo -

Features

1

Page 3: Da zero a Python in 45 minuti - Andrea Colangelo -

utilizzatoLargamente

Page 4: Da zero a Python in 45 minuti - Andrea Colangelo -

IncludedBatteries

Page 5: Da zero a Python in 45 minuti - Andrea Colangelo -

ObjectOriented

Page 6: Da zero a Python in 45 minuti - Andrea Colangelo -

ZUCCHEROSintattico

Page 7: Da zero a Python in 45 minuti - Andrea Colangelo -

Interpretatonon mescolato (semi-cit.)

Page 8: Da zero a Python in 45 minuti - Andrea Colangelo -

Shellinterattiva

Page 9: Da zero a Python in 45 minuti - Andrea Colangelo -

Hello world

2

Page 10: Da zero a Python in 45 minuti - Andrea Colangelo -

Hello world inC

Page 11: Da zero a Python in 45 minuti - Andrea Colangelo -

Hello world inJava

Page 12: Da zero a Python in 45 minuti - Andrea Colangelo -

Hello world inPython

Page 13: Da zero a Python in 45 minuti - Andrea Colangelo -

LE BASI

3

Page 14: Da zero a Python in 45 minuti - Andrea Colangelo -

Hands

ON!

Page 15: Da zero a Python in 45 minuti - Andrea Colangelo -

If

4

Page 16: Da zero a Python in 45 minuti - Andrea Colangelo -

IF

Page 17: Da zero a Python in 45 minuti - Andrea Colangelo -

IF

Page 18: Da zero a Python in 45 minuti - Andrea Colangelo -

Le insidie dellaINDENTAZIONE

Page 19: Da zero a Python in 45 minuti - Andrea Colangelo -

Le insidie dellaINDENTAZIONE

Page 20: Da zero a Python in 45 minuti - Andrea Colangelo -

Le insidie dellaINDENTAZIONE

Page 21: Da zero a Python in 45 minuti - Andrea Colangelo -

Le insidie dellaINDENTAZIONE

Page 22: Da zero a Python in 45 minuti - Andrea Colangelo -

ERRORI

5

Page 23: Da zero a Python in 45 minuti - Andrea Colangelo -

Look Before You

LEAP

Page 24: Da zero a Python in 45 minuti - Andrea Colangelo -

LBYL

Page 25: Da zero a Python in 45 minuti - Andrea Colangelo -

Easier to Ask Forgiveness than

PERMISSION

Page 26: Da zero a Python in 45 minuti - Andrea Colangelo -

EAFP

Page 27: Da zero a Python in 45 minuti - Andrea Colangelo -

Strutture dati

6

Page 28: Da zero a Python in 45 minuti - Andrea Colangelo -

LISTE

Page 29: Da zero a Python in 45 minuti - Andrea Colangelo -

LISTE

Page 30: Da zero a Python in 45 minuti - Andrea Colangelo -

TUPLE

Page 31: Da zero a Python in 45 minuti - Andrea Colangelo -

DIR()

Page 32: Da zero a Python in 45 minuti - Andrea Colangelo -

DIZIONARI

Page 33: Da zero a Python in 45 minuti - Andrea Colangelo -

DIZIONARI

Page 34: Da zero a Python in 45 minuti - Andrea Colangelo -

cicli

7

Page 35: Da zero a Python in 45 minuti - Andrea Colangelo -

WHILE

Page 36: Da zero a Python in 45 minuti - Andrea Colangelo -

FOR

Page 37: Da zero a Python in 45 minuti - Andrea Colangelo -

FOR

Page 38: Da zero a Python in 45 minuti - Andrea Colangelo -

FOR

Page 39: Da zero a Python in 45 minuti - Andrea Colangelo -

LIST COMPREHENSIONS

Page 40: Da zero a Python in 45 minuti - Andrea Colangelo -

funzioni

8

Page 41: Da zero a Python in 45 minuti - Andrea Colangelo -

FUNZIONI

Page 42: Da zero a Python in 45 minuti - Andrea Colangelo -

FUNZIONI

Page 43: Da zero a Python in 45 minuti - Andrea Colangelo -

FUNZIONI

Page 44: Da zero a Python in 45 minuti - Andrea Colangelo -

FUNZIONI

Page 45: Da zero a Python in 45 minuti - Andrea Colangelo -

RICORSIONE

Page 46: Da zero a Python in 45 minuti - Andrea Colangelo -

fattoriale

Page 47: Da zero a Python in 45 minuti - Andrea Colangelo -

fattoriale

Page 48: Da zero a Python in 45 minuti - Andrea Colangelo -

fattoriale

Page 49: Da zero a Python in 45 minuti - Andrea Colangelo -

IMPORT

Page 50: Da zero a Python in 45 minuti - Andrea Colangelo -

http://xkcd.com/353/

Page 51: Da zero a Python in 45 minuti - Andrea Colangelo -

OOP

9

Page 52: Da zero a Python in 45 minuti - Andrea Colangelo -

OOP

Page 53: Da zero a Python in 45 minuti - Andrea Colangelo -

Docs

10

Page 54: Da zero a Python in 45 minuti - Andrea Colangelo -

DOCSTRING

Page 55: Da zero a Python in 45 minuti - Andrea Colangelo -

help()

Page 56: Da zero a Python in 45 minuti - Andrea Colangelo -

DOCSdir()

help()

www.diveintopython3.netdocs.python.orgwww.python.org

Page 57: Da zero a Python in 45 minuti - Andrea Colangelo -

TODO

11

Page 58: Da zero a Python in 45 minuti - Andrea Colangelo -

TODODecoratori

Funzioni Lambda

...Test

Generatori

Page 59: Da zero a Python in 45 minuti - Andrea Colangelo -

ONE-LINERS

12

Page 60: Da zero a Python in 45 minuti - Andrea Colangelo -

Tratto da “Fahrenheit 2013”, di Makkoxhttp://tinyurl.com/odoxv9vCortesia dell'autore

Page 61: Da zero a Python in 45 minuti - Andrea Colangelo -

MAKKOX

Page 62: Da zero a Python in 45 minuti - Andrea Colangelo -

WEB SERVER

Page 63: Da zero a Python in 45 minuti - Andrea Colangelo -

UNIX USERS

Page 64: Da zero a Python in 45 minuti - Andrea Colangelo -

CRIVELLO DI ERATOSTENE

Page 65: Da zero a Python in 45 minuti - Andrea Colangelo -
Page 66: Da zero a Python in 45 minuti - Andrea Colangelo -

Andrea Colangelo@andreacolangelo

[email protected]

Licensed under the terms of WTFPL:http://www.wtfpl.net/txt/copying/