vault backup: 2023-11-13 13:50:53
79
.obsidian/workspace.json
vendored
@ -14,8 +14,21 @@
|
|||||||
"type": "empty",
|
"type": "empty",
|
||||||
"state": {}
|
"state": {}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "753ff8810fce3fd0",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "markdown",
|
||||||
|
"state": {
|
||||||
|
"file": "Algo/B2/Exercises/Imperative exercise.md",
|
||||||
|
"mode": "source",
|
||||||
|
"source": false
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"currentTab": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"direction": "vertical"
|
"direction": "vertical"
|
||||||
@ -81,6 +94,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "backlink",
|
"type": "backlink",
|
||||||
"state": {
|
"state": {
|
||||||
|
"file": "Algo/B2/Exercises/Imperative exercise.md",
|
||||||
"collapseAll": false,
|
"collapseAll": false,
|
||||||
"extraContext": false,
|
"extraContext": false,
|
||||||
"sortOrder": "alphabetical",
|
"sortOrder": "alphabetical",
|
||||||
@ -97,6 +111,7 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "outgoing-link",
|
"type": "outgoing-link",
|
||||||
"state": {
|
"state": {
|
||||||
|
"file": "Algo/B2/Exercises/Imperative exercise.md",
|
||||||
"linksCollapsed": false,
|
"linksCollapsed": false,
|
||||||
"unlinkedCollapsed": true
|
"unlinkedCollapsed": true
|
||||||
}
|
}
|
||||||
@ -118,7 +133,9 @@
|
|||||||
"type": "leaf",
|
"type": "leaf",
|
||||||
"state": {
|
"state": {
|
||||||
"type": "outline",
|
"type": "outline",
|
||||||
"state": {}
|
"state": {
|
||||||
|
"file": "Algo/B2/Exercises/Imperative exercise.md"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -148,31 +165,35 @@
|
|||||||
"command-palette:Open command palette": false
|
"command-palette:Open command palette": false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"active": "9f9ffb40dcd212ab",
|
"active": "753ff8810fce3fd0",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
|
"Algo/B2/Exercises/Imperative exercise.md",
|
||||||
|
"Algo/B2/Exercises",
|
||||||
|
"Algo/B2",
|
||||||
|
"Algo/B1",
|
||||||
"Exam.md",
|
"Exam.md",
|
||||||
"Algo/Courses/Chapter 6 - Lists.md",
|
"Algo/B1/Courses/Chapter 6 - Lists.md",
|
||||||
"Algo/Courses/Chapter 6 - Lists (Exercises).md",
|
"Algo/B1/Courses/Chapter 6 - Lists (Exercises).md",
|
||||||
"Algo/Courses/Chapter 7 - High Order (exercises).md",
|
"Algo/B1/Courses/Chapter 7 - High Order (exercises).md",
|
||||||
"Algo/Séminaire/Chapter 1 - CAML basics.md",
|
"Algo/B1/Séminaire/Chapter 1 - CAML basics.md",
|
||||||
"Algo/CM/CM du 04 octobre.md",
|
"Algo/B1/CM/CM du 04 octobre.md",
|
||||||
"Code CAML.md",
|
"Code CAML.md",
|
||||||
"Algo/Séminaire/Chapter 5 - Recursivity.md",
|
"Algo/B1/Séminaire/Chapter 5 - Recursivity.md",
|
||||||
"Algo/CM/CM du 27 septembre.md",
|
"Algo/B1/CM/CM du 27 septembre.md",
|
||||||
"Algo/Séminaire/Chapter 3 - Case analysis.md",
|
"Algo/B1/Séminaire/Chapter 3 - Case analysis.md",
|
||||||
"Algo/Séminaire/Chapter 2 - Functions.md",
|
"Algo/B1/Séminaire/Chapter 2 - Functions.md",
|
||||||
"Prog/Loops.md",
|
"Prog/Loops.md",
|
||||||
"Algo/Séminaire/Chapter 4 - A bit of imperative.md",
|
"Algo/B1/Séminaire/Chapter 4 - A bit of imperative.md",
|
||||||
"Algo/CM/Lists.md",
|
"Algo/B1/CM/Lists.md",
|
||||||
"Algo/Séminaire/Exercices seminaire.md",
|
"Algo/B1/Séminaire/Exercices seminaire.md",
|
||||||
"Prog",
|
"Prog",
|
||||||
"Algo/Séminaire/Remediation.md",
|
"Algo/B1/Séminaire/Remediation.md",
|
||||||
"Methodologie/Communication.md",
|
"Methodologie/Communication.md",
|
||||||
"Methodologie/Le cahier des charges.md",
|
"Methodologie/Le cahier des charges.md",
|
||||||
"Methodologie/Gestion.md",
|
"Methodologie/Gestion.md",
|
||||||
"Algo/Courses",
|
"Algo/B1/Courses",
|
||||||
"COM-ADMR/Séjour international EPITA.md",
|
"COM-ADMR/Séjour international EPITA.md",
|
||||||
"Algo/CM",
|
"Algo/B1/CM",
|
||||||
"Electronic/Lecture 1.md",
|
"Electronic/Lecture 1.md",
|
||||||
"Architecture/Lecture 1.md",
|
"Architecture/Lecture 1.md",
|
||||||
"Electronic",
|
"Electronic",
|
||||||
@ -181,20 +202,16 @@
|
|||||||
"English",
|
"English",
|
||||||
"README.md",
|
"README.md",
|
||||||
"COM-ADMR",
|
"COM-ADMR",
|
||||||
"Methodologie",
|
"Algo/B1/Séminaire/Introduction.md",
|
||||||
"Algo/Séminaire/Introduction.md",
|
"Algo/B1/Séminaire/assets/exception-meme.png",
|
||||||
"Algo/Séminaire/assets/exception-meme.png",
|
"Algo/B1/Séminaire/assets/filter-meme.png",
|
||||||
"Algo/Séminaire/assets/filter-meme.png",
|
"Algo/B1/Séminaire/assets/if-meme.png",
|
||||||
"Algo/Séminaire/assets/if-meme.png",
|
"Algo/B1/Séminaire/assets/basics-meme.png",
|
||||||
"Algo/Séminaire/assets/basics-meme.png",
|
"Algo/B1/Séminaire/assets/functions-meme.jpg",
|
||||||
"Algo/Séminaire/assets/functions-meme.jpg",
|
"Algo/B1/Séminaire/assets/unitaire-meme.png",
|
||||||
"Algo/Séminaire/assets/unitaire-meme.png",
|
"Algo/B1/Séminaire/assets/fact function response.png",
|
||||||
"Algo/Séminaire/assets/fact function response.png",
|
"Algo/B1/Séminaire/assets/recursivite-meme.png",
|
||||||
"Algo/Séminaire/assets/recursivite-meme.png",
|
|
||||||
"Pasted image 20230912155138.png",
|
"Pasted image 20230912155138.png",
|
||||||
"Algo/Chapter 0 - A bit of imperative/0.1 - Print.md",
|
|
||||||
"Algo/Séminaire/Untitled",
|
|
||||||
"Algo/Chapter 0 - A bit of imperative",
|
|
||||||
"Algo/Séminaire/assets/69E2987C-209A-48CD-8964-5A60462966E5.jpg",
|
"Algo/Séminaire/assets/69E2987C-209A-48CD-8964-5A60462966E5.jpg",
|
||||||
"Untitled.canvas"
|
"Untitled.canvas"
|
||||||
]
|
]
|
||||||
|
Before Width: | Height: | Size: 466 KiB After Width: | Height: | Size: 466 KiB |
Before Width: | Height: | Size: 654 KiB After Width: | Height: | Size: 654 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 464 KiB After Width: | Height: | Size: 464 KiB |
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 293 KiB After Width: | Height: | Size: 293 KiB |
Before Width: | Height: | Size: 867 KiB After Width: | Height: | Size: 867 KiB |
Before Width: | Height: | Size: 789 KiB After Width: | Height: | Size: 789 KiB |
13
Algo/B2/Exercises/Imperative exercise.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
## Exercise 1:
|
||||||
|
```python
|
||||||
|
def test (n: int) -> bool:
|
||||||
|
if (n >= 100):
|
||||||
|
if (n < 1000):
|
||||||
|
return true
|
||||||
|
else:
|
||||||
|
return false
|
||||||
|
else:
|
||||||
|
return false
|
||||||
|
```
|
||||||
|
|
||||||
|
## Exercise 2:
|