From 56bf5c13f347ea2334dec063a0a757f37d1c5c06 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 24 Nov 2023 14:43:31 +0100 Subject: [PATCH] vault backup: 2023-11-24 14:43:31 --- .obsidian/workspace.json | 6 +++--- Algo/B2/Exercises/Imperative exercise.md | 4 +++- Algo/B2/Exercises/Repetitive tutorial.md | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 09dbf15..bdb1110 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -156,11 +156,11 @@ "command-palette:Open command palette": false } }, - "active": "c473a791e2b34194", + "active": "41ec48cdc3af71a1", "lastOpenFiles": [ - "Prog/Collections.md", - "Algo/B2/Exercises/Repetitive tutorial.md", "Algo/B2/Exercises/Imperative exercise.md", + "Algo/B2/Exercises/Repetitive tutorial.md", + "Prog/Collections.md", "Prog/Array.md", "Algo/B2/Exercises", "Algo/B2", diff --git a/Algo/B2/Exercises/Imperative exercise.md b/Algo/B2/Exercises/Imperative exercise.md index 9b92b25..e5c88ea 100644 --- a/Algo/B2/Exercises/Imperative exercise.md +++ b/Algo/B2/Exercises/Imperative exercise.md @@ -73,4 +73,6 @@ def main(): main() else: print("set a 3 digits number") - main() \ No newline at end of file + main() +``` + diff --git a/Algo/B2/Exercises/Repetitive tutorial.md b/Algo/B2/Exercises/Repetitive tutorial.md index 806f235..4755fb8 100644 --- a/Algo/B2/Exercises/Repetitive tutorial.md +++ b/Algo/B2/Exercises/Repetitive tutorial.md @@ -47,7 +47,7 @@ def productZ(x, y): ``` ## Exercise 1.3 -``` +```python def exponetial(x: int, n: int) -> int: result = 0 while n > 0: @@ -115,3 +115,4 @@ def my_sum(n: int) -> int: s += u(n) n -= 1 return s +```