vault backup: 2023-11-20 14:39:24

This commit is contained in:
Louis Gallet 2023-11-20 14:39:24 +01:00
parent c35124aba6
commit 92b5e2f517
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

View File

@ -48,5 +48,9 @@ def productZ(x, y):
## Exercise 1.3 ## Exercise 1.3
``` ```
def exponentiation(x: int, n: int) -> int: def exponetial(x: int, n: int) -> int:
result = 0
while n > 0:
m *= x
n -= 1
return result