Discovering the language
In the following exercises, you will be asked to display a value. Display only this value; do not attempt to format it, as that will be handled by other components.
Work Files
For the exercises in this assignment, you will be working with the following files:
exos/base/exo_01a.py, which you will need to create.exos/base/exo_01b.py, which is provided for you
First Exercise
For your first code, start by creating a source file named exo_01a.py in the exos directory.
Your training course lasts 5 days, with each day lasting 7 hours.
In your script:
- Assign these values to variables.
- Display the values of these variables.
- Calculate the total duration of your training course in hours and display this duration.
Second Exercise
You can complete this exercise by adding the following code to the exo_01a.py source file.
The lunch break on the first day lasted 72 minutes. Display the total duration in hours and minutes (you may, of course, display the hours and minutes separately).
Third exercice
In the exos directory, you will find a file named exo_01b.py. This file contains code that
interacts with the user. It prompts the user in the terminal to enter the duration of the training
in days. This value is assigned to the variable duration.
Use the existing code to display the value of this duration in hours. Be sure to pay close attention to the data returned by the function…