Information, calcul, communication

CS-119(h)

ICC-P-Exercise-NumbersOperatorsBooleans

This page is part of the content downloaded from ICC-P-Exercise-NumbersOperatorsBooleans on Wednesday, 25 December 2024, 17:23. Note that some content and any files larger than 50 MB are not downloaded.

Description

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.


Files and subfolders