Feat(NSI): V1 du devoir

This commit is contained in:
2023-01-06 15:07:11 +01:00
parent 8f9d9e2bdd
commit 3bfb96adb6
8 changed files with 223 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
def f(x, y):
x = x + y
y = x - y
x = x - y
return (x, y)

View File

@@ -0,0 +1,3 @@
n = 1
for i in range(4):
n = n + 2

View File

@@ -0,0 +1,10 @@
a = 3
b = 4
if a > b and a == 3:
print('vert')
if a > b and b == 4:
print('rouge')
if a == 4 or b > a:
print('bleu')
if a == 3 or a < b:
print('jaune')

View File

@@ -0,0 +1,5 @@
compt = 0
resultat = 1
while compt !=7:
resultat = resultat * compt
compt = compt + 1