Know the fundamental constructs of the Python language
Curriculum
teacher profile teaching materials
Interactive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Programme
1) Introduction to PythonInteractive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
Core Documentation
Allen B. Downey, "Think Python". O'Reilly“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Attendance
OptionalType of evaluation
The exam consists of two parts, both assessed during the oral examination: (i) the presentation and discussion of a project developed using the Python constructs and tools introduced during the course to address a scientific problem selected from a set of proposed topics; (ii) an oral examination aimed at assessing the knowledge acquired. The final grade is determined as the arithmetic mean of the grades obtained in the two parts of the exam. teacher profile teaching materials
Interactive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Mutuazione: 20411064-1 IN401 - MODULO A: PROGRAMMAZIONE IN PYTHON in Matematica LM-40 R (docente da definire)
Programme
1) Introduction to PythonInteractive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
Core Documentation
Allen B. Downey, "Think Python". O'Reilly“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Attendance
OptionalType of evaluation
The exam consists of two parts, both assessed during the oral examination: (i) the presentation and discussion of a project developed using the Python constructs and tools introduced during the course to address a scientific problem selected from a set of proposed topics; (ii) an oral examination aimed at assessing the knowledge acquired. The final grade is determined as the arithmetic mean of the grades obtained in the two parts of the exam. teacher profile teaching materials
Interactive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Mutuazione: 20411064-1 IN401 - MODULO A: PROGRAMMAZIONE IN PYTHON in Matematica LM-40 R Ravoni Alessandro
Programme
1) Introduction to PythonInteractive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
Core Documentation
Allen B. Downey, "Think Python". O'Reilly“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Attendance
OptionalType of evaluation
The exam consists of two parts, both assessed during the oral examination: (i) the presentation and discussion of a project developed using the Python constructs and tools introduced during the course to address a scientific problem selected from a set of proposed topics; (ii) an oral examination aimed at assessing the knowledge acquired. The final grade is determined as the arithmetic mean of the grades obtained in the two parts of the exam. teacher profile teaching materials
Interactive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Mutuazione: 20411064-1 IN401 - MODULO A: PROGRAMMAZIONE IN PYTHON in Matematica LM-40 R Ravoni Alessandro
Programme
1) Introduction to PythonInteractive interpreter and script execution modes. Primitive data types: integers, floating-point numbers, strings.
2) Conditional and Iterative Statements
Boolean variables and evaluation of truth conditions. If, elif, else conditional statements. Indefinite loops and iteration over sequences.
3) Functions and Methods
Definition of functions, parameter passing, return values. Anonymous functions. Method as a built-in function or a function associated with a specific data type/object.
4) Modules
Organization of code into external modules. Import mechanisms for the standard library and use of alias.
5) Input/Output Management
Terminal interaction through input and screen output. Text files operations. Management of command-line arguments.
6) Python Data Structures
Lists: indexing, slicing, fundamental operations, methods for element manipulation. Built-in functions for iteration. Immutable sequences: tuples. Management of unordered collections and unique elements through sets and related set operations. Associative data structures: dictionaries.
7) Introduction to Object-Oriented Programming
Introduction to the object-oriented paradigm: definition of classes, creation of instances, management of instance attributes and methods.
Core Documentation
Allen B. Downey, "Think Python". O'Reilly“The Python tutorial” (https://docs.python.org/3/tutorial/index.html)
Attendance
OptionalType of evaluation
The exam consists of two parts, both assessed during the oral examination: (i) the presentation and discussion of a project developed using the Python constructs and tools introduced during the course to address a scientific problem selected from a set of proposed topics; (ii) an oral examination aimed at assessing the knowledge acquired. The final grade is determined as the arithmetic mean of the grades obtained in the two parts of the exam.