{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from _validation import *","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Question 1"},{"metadata":{},"cell_type":"markdown","source":"Écris la fonction opposé c'est-à-dire $x \\mapsto -x$\n"},{"metadata":{"trusted":true},"cell_type":"code","source":"def oppose(x):\n return ","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"### VALIDATION ###\ntest_oppose()","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Question 2"},{"metadata":{},"cell_type":"markdown","source":"Écris la fonction carré\n"},{"metadata":{"trusted":true},"cell_type":"code","source":"def carre(x):\n return ","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"### VALIDATION ###\ntest_carre()","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Question 3"},{"metadata":{},"cell_type":"markdown","source":"Écris la fonction valeur absolue\n"},{"metadata":{"trusted":true},"cell_type":"code","source":"def absolue(x):\n ","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"### VALIDATION ###\ntest_absolue()","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3 (ipykernel)","language":"python","name":"python3"}},"nbformat":4,"nbformat_minor":2}
{"cells":[{"metadata":{"trusted":true},"cell_type":"code","source":"from _validation import *","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Question 1"},{"metadata":{},"cell_type":"markdown","source":"Écris la fonction opposé c'est-à-dire $x \\mapsto -x$\n"},{"metadata":{"trusted":true},"cell_type":"code","source":"def oppose(x):\n return ","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"tags":["breakpoint"]},"cell_type":"code","source":"test_oppose()","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Question 2"},{"metadata":{},"cell_type":"markdown","source":"Écris la fonction carré\n"},{"metadata":{"trusted":true},"cell_type":"code","source":"def carre(x):\n return ","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"tags":["breakpoint"]},"cell_type":"code","source":"test_carre()","execution_count":null,"outputs":[]},{"metadata":{},"cell_type":"markdown","source":"### Question 3"},{"metadata":{"tags":["breakpoint"]},"cell_type":"markdown","source":"Exécute cette cellule puis écris la fonction valeur absolue"},{"metadata":{"trusted":true},"cell_type":"code","source":"def absolue(x):\n ","execution_count":null,"outputs":[]},{"metadata":{"trusted":true,"tags":["breakpoint"]},"cell_type":"code","source":"test_absolue()","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"display_name":"Python 3 (ipykernel)","language":"python","name":"python3"},"celltoolbar":"Tags"},"nbformat":4,"nbformat_minor":2}
\ No newline at end of file
%% Cell type:code id: tags:
``` python
from_validationimport*
```
%% Cell type:markdown id: tags:
### Question 1
%% Cell type:markdown id: tags:
Écris la fonction opposé c'est-à-dire $x \mapsto -x$
%% Cell type:code id: tags:
``` python
defoppose(x):
return
```
%% Cell type:code id: tags:
%% Cell type:code id: tags:breakpoint
``` python
### VALIDATION ###
test_oppose()
```
%% Cell type:markdown id: tags:
### Question 2
%% Cell type:markdown id: tags:
Écris la fonction carré
%% Cell type:code id: tags:
``` python
defcarre(x):
return
```
%% Cell type:code id: tags:
%% Cell type:code id: tags:breakpoint
``` python
### VALIDATION ###
test_carre()
```
%% Cell type:markdown id: tags:
### Question 3
%% Cell type:markdown id: tags:
%% Cell type:markdown id: tags:breakpoint
Écris la fonction valeur absolue
Exécute cette cellule puis écris la fonction valeur absolue