correction exemples
This commit is contained in:
@@ -107,8 +107,8 @@ __Question 8 :__ En s'inspirant des questions précédentes, écrire une fonctio
|
|||||||
``` python
|
``` python
|
||||||
>>> decimal_en_hexa(21)
|
>>> decimal_en_hexa(21)
|
||||||
"15"
|
"15"
|
||||||
>>> decimal_en_hexa(2019)
|
>>> decimal_en_hexa(2023)
|
||||||
"7E3"
|
"7E7"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ __Question 9 :__ écrire une fonction ``hexa_en_decimal(hexa)`` qui retourne le
|
|||||||
```python
|
```python
|
||||||
>>> hexa_en_decimal("A")
|
>>> hexa_en_decimal("A")
|
||||||
10
|
10
|
||||||
>>> decimal_en_hexa("E10F")
|
>>> hexa_en_decimal("E10F")
|
||||||
57615
|
57615
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user