Information, calcul, communication
Weekly outline
-
Ce cours s’adresse aux étudiant.e.s en génie civil et science et génie des matériaux de première année à l’EPFL. Le premier cours aura lieu le vendredi 12 septembre 2025 à 9h15, en salle CE 1 2Enseignant·e·s: Mirjana Stojilović (partie programmation) et Olivier Lévêque (partie théorique)
Assistant·e·s:- Partie programmation:
Emilien Silly (Assistant principal), Ayman Bakiri, Malak Boulahfa, Elie Bruno, Adam Chahed Ouazzani, Manon Cesbron Darnaud, Iskandar Ghobril, Victor Monfredo, Cleopatra Moroianu, Lina Sagdal - Partie théorique:
AAC 1 32: Adrien Lièvre, Chaimâa Ouchicha, Victor Monfredo
CO 015: Floriane Baron, Elie Bruno, Thomas Fassnacht (gymnase de Renens)
CO 016: Cleopatra Moroianu, Manon Cesbron Darnaud, Thomas Christiansson
CO 017: Martina Gatti, Justin Labaeye
- Partie programmation:
- cours les vendredis de 9h15 à 10h00:
en salle CE 1 2. Enregistrements (année 2024-25): Mediaspace
- Partie théorique:
Ressources pour le cours (partie théorique):
- MOOC sur courseware.epfl.ch
- Livre «Découvrir le numérique», EPFL Press, 2016
(voir aussi les solutions des exercices du livre)
Calcul de votre note finale:- midterm du 7 novembre: 40% (info détaillées: voir plus bas en semaine 8)
- projet de programmation: 15%
- examen final du 19 décembre: 40% (info détaillées: voir plus bas en semaine 14)
- quiz sur la sécurité informatique (à faire sur Moodle d'ici le 31 octobre 2025): 5%
-
You will find two files here:
-
PDF file with examples of Python coding questions relevant to the midterm exam.
-
Python script with the corresponding code.
To run the script and display the expected answer for a specific question, use the following command in your terminal:
python <script_name> <year> <question>For example:
python ICC-P-Practice-Midterm-Solutions.py 2023 5This command will show the expected answer for Question 5 (Year 2023). Make sure your terminal’s current directory matches the location of your script.
You may notice that questions from 2024 are missing; we will share them in the week leading up to the midterm exam (after the break). Update: the questions and answers from the midterm exam in Fall 2024 are online, under "Semaine 7". -
- Partie programmation:
-
-
This lecture provides information about the organization of the course throughout the semester.
-
Let us warm up by interacting with Python interpreter.
Online reading: Link -
Connectez-vous sur l’infrastructure des postes de travail virtuels. Choisissez une des machines virtuelles IC-CO-IN-SC-MA-2025-Fall ou IC-CO-IN-SC-INJ-2025-Fall (et pas une autre).
-
The UbuntuIntro exercise contains several practical concepts regarding using a terminal in an operating system such as Ubuntu. We recommend that you do it to see that one does not need a visual editor to interact with the operating system.
Note: The topic is not directly related to Python programming and will not be an exam topic. Despite that, you should not ignore it, as it presents the basics necessary for anyone using a Linux operating system.
-
-
-
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. -
-
-
-
-
-
-
-
Given the limited time during the exercise session, try solving the first two exercises only. The last one can be left as homework.
-
-
Given the limited time during the exercise session, try solving the first five exercises only. The last one can be left as homework.
-
-
-
-
-
Première vidéo (en anglais) de Ben Eater sur le fonctionnement d'une diode, le plus simple des semi-conducteurs
-
Deuxième vidéo (toujours en anglais) de Ben Eater sur le fonctionnement d'un transistor
-
-
-
-
Séance de réponses aux questions le mercredi 5 novembre de 10h à 12h, en salles AAC 0 14 et AAC 0 20.
Midterm le vendredi 7 novembre de 9h00 à 12h00, en salles CM 1 2 (de Agosta à Cuennet), CO 1 (de Davron à Meng) et CO 3 (de Mirabueno à Zuchuat).
Formulaire autorisé: une page A4 recto-verso manuscrite, préparée avec ipad + stylet ou même dactylographiée (vous avez aussi le droit de prendre des screenshots des algorithmes). Un seul conseil à ce sujet: préparez le formulaire vous-même: vous réviserez ainsi le cours et les exercices!Aucun appareil électronique n'est autorisé pour cet examen, sauf une calculatrice simple (du type TI-30 eco RS, ou même plus simple: il n'y a bien sûr pas besoin que ce soit précisément ce modèle!); vous êtes également bienvenu·e·s d'amener vos feuilles de brouillon.Cet examen compte pour 40% de la note, avec 25 points pour la théorie et 15 points pour la programmation. Le sujet de l'examen porte sur tout ce qui a été vu en cours et en exercices jusqu'à la semaine 6 incluse.Le cours et les exercices de théorie ont lieu comme d'habitude le vendredi après-midi. -
-
-
-
-
-
-
-
This is the Automatic Grader for the Project, you can submit your game_2048.py file here, and after a few minutes you will receive your grade out of 10 and your feedback file called "feedback.txt". These are the 10 points out of 15 for this project about code correctness.
The 5 remaining points (formatting and code comprehension) will be evaluated by a student assistant with a Live demo during an exercise session.Important: Your file must be named game_2048.py, otherwise the grader will not recognize it and you will lose a submission !
Important: After uploading your file your submission will be in draft state, you must click on the red "Submit assignment" button to actually send your submission to the grader !
-
-
-
-
-
-
These exercises are examples of past exam questions.
-
To compute the expected answers, run this Python script.
-
-
"Python Like You Mean It (PLYMI) is a free resource for learning the basics of Python & NumPy, and moreover, becoming a competent Python user. The features of the Python language that are emphasized here were chosen to help those who are particularly interested in STEM applications (data analysis, machine learning, numerical work, etc.)."
Written by Ryan Soklaski -
These exercises are examples of past exam questions.
-
To compute the expected answers, run this Python script.
-
These exercises are examples of past exam questions.
-
To compute the expected answers, run this Python script.
-
Séance de réponses aux questions le mercredi 17 décembre de 10h à 12h, en salle CM 1 4.
Examen final le vendredi 19 décembre de 9h00 à 12h00 en salle CO 1 (de Agosta à Gemayel) et SG 1 (de Ginzburg à Zuchuat).Formulaire autorisé: deux pages A4 recto-verso manuscrites, préparées avec ipad + stylet ou même dactylographiées(un seul conseil à ce sujet: préparez le formulaire vous-même: vous réviserez ainsi le cours et les exercices!)Aucun appareil électronique n'est autorisé pour cet examen, rien d'électronique sauf une calculatrice simple (du type TI-30 eco RS, ou même plus simple: il n'y a bien sûr pas besoin que ce soit précisément ce modèle!); vous êtes également bienvenu·e·s d'amener vos feuilles de brouillon.Cet examen compte pour 40% de la note, avec 20 points pour la théorie et 20 points pour la programmation.Et il n'y a pas de cours l'après-midi, bien sûr :-)
Programming:
Programming:
Programming:
Programming:
Programming:
Programming:
Programming:
Programming:
Programming: