Résumé de section

    • Partie théorique: 

      • Algorithmes et sous-algorithmes
      • Complexité temporelle d'un algorithme


    • Software engineeringProgramming: 

      • Variables and types
      • Numbers, Booleans
      • Operators and their precedence

    • Try solving the exercises in the Python interpreter without using if-elif-else constructs (for those who know how to use them in Python). You can also write all commands in one .py file (a Python script) and run it if that suits you better. We will share the solution in one file so you can easily change and rerun it.

      To run, press the "play" button on the top right corner of your Visual Studio Code editor. Do not forget to activate the environment that you installed last week! :-)

      Next week, we will study if-elif-else constructs, the preferred way to solve some of the problems in this exercise set.

    • Read the lecture slides ICC-P-Lecture02-NumbersBooleans, starting from Slide 21 and continuing to the end.

      Pay particular attention to the different assignment operators. Try coding the examples provided in the slides, then modify the operators and observe how the results change.

      Next, review the table showing operator precedence. Work through the given examples first with pen and paper, and then verify your answers by running the corresponding Python code.