
- 6 ECTS
- 1st Semester
- Exam: Not specified
Feedback
No feedback for this course yet
Be the first to share your experience, or ask your friends to leave feedback! Your input helps future students make better choices.
About the course
Objectives
The main objective of this course is to introduce students to the theoretical aspects of programming, by giving a broad overview of the most important topics. At the end of the semester, students are expected to handle programming problems of medium complexity, using an interpreted, high-level programming language such as Python. More specifically, students are expected to be able to:
- describe the principles, concepts and fundamentals of programming.
- design and implement, in a programming language, an executable solution (to a given problem) that uses the fundamental programming constructs, basic computations, standard conditional and iterative structures, simple input / output, persistence, and exceptions.
- write functions and correctly reason about variables and lexical scope.
- understand data abstraction and use aggregate data types.
- write and document computer programs according to best practices.
- apply appropriate software testing techniques.
Syllabus
Brief introduction to programming fundamentals, computer programming, and programming languages followed by an in depth discussion of the following programming concepts:
- Variables: names and the assignment operator, legal and recommended variable names, and reserved words.
- Data types I: strings, lists, and arrays.
- Data types II: tuples, dictionaries, and objects.
- Conditionals: if, elif, and else statements, and logical operators.
- Loops: for loops, while loops, and lists of comprehension.
- Functions: variable number of arguments, keyword arguments, functions as arguments, scope, mutable and immutable objects, anonymous functions, recursion.
- Libraries and Modules.
- Input and Output: keyboard input, screen output, file input, and file output.
- Object-Oriented Programming (OOP): classes and inheritance.
- Software testing.
Assessment
The evaluation of each student is based on individual tests and one final exam.
Bibliography
Main
- Introduction to Computation and Programming using Python, John Guttag, 2021, 9780262542364
- Introduction to Python for Science & Engineering, David J. Pine, 2019, 9780429506413
Secondary
- Learning Python from O'Reilly, Mark Lutz, 2013, 9781449355739
- Python for Science and Engineering, Hans-Petter Halvorsen, 2019, 978-82-691106-5-4
- Python Programming: An Introduction to Computer Science, John Zelle, 2016, 9781590282755
- The Python Tutorial, Python Software Foundation, 2020