====== Python ====== Nella lezione dell'8/10 abbiamo introdotto il linguaggio di programmazione [[wp>Python_(programming_language)|Python]]. Abbiamo in particolare considerato questi aspetti: * Strutture dati: * Variabili (tipizzazione dinamica forte) * Sequenze: liste, dizionari, stringhe e tuple * Classi e oggetti (inizializzazione, definizione di metodi) * Controllo: * Cicli a contatore e su liste (for, while) * Condizionali * Funzioni, e funzioni anonime (lambda) * Eccezioni Documentazione (sul sito della Python Software Foundation): * [[http://www.python.org/about/gettingstarted|Getting started]] * [[http://docs.python.org/tut/tut.html|Tutorial]] (abbiamo visto quasi tutti gli argomenti trattati nei primi 9 capitoli) Inoltre, esiste un ottimo testo introduttivo a Python (e "free"), [[http://www.diveintopython.org/|Dive into Python]] (abbiamo visto gli argomenti trattati nei primi 6 capitoli). ==The Python Programming Language== In this lecture, we have introduced the [[wp>Python_(programming_language)|Python]] programming language. We have considered the following items: * Data structures: * Variables (dynamic, strong typing; duck typing) * Sequences: lists, dictionaries, tuples and strings * Classes and objects: initialization, methods, special methods * Control flow: * Counter and list-based loops (for, while) * Conditionals * Functions and anonymous functions (lambda) * Exceptions * Printing facilities Documentation (one the Python Software Foundation website): * [[http://www.python.org/about/gettingstarted|Getting started]] * [[http://docs.python.org/tut/tut.html|Tutorial]] (the course covers the first 9 chapters) Moreover, there is a good introductory free book on Python, [[http://www.diveintopython.org/|Dive into Python]] (you should study the first 6 chapters). See the main course website and the [[http://www.python.org|Python]] website for more Python resources.