suppression ancien fichier cours Pile & File, et ajout des sujets bacs NSI
This commit is contained in:
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-16/25-NSI-16.pdf
Normal file
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-16/25-NSI-16.pdf
Normal file
Binary file not shown.
17
Sujet_bac/Pratique/BNS_2025/25-NSI-16/25-NSI-16.py
Normal file
17
Sujet_bac/Pratique/BNS_2025/25-NSI-16/25-NSI-16.py
Normal file
@@ -0,0 +1,17 @@
|
||||
def ligne_suivante(ligne):
|
||||
'''Renvoie la ligne suivant ligne du triangle de Pascal'''
|
||||
ligne_suiv = [...]
|
||||
for i in range(...):
|
||||
ligne_suiv.append(...)
|
||||
ligne_suiv.append(...)
|
||||
return ligne_suiv
|
||||
|
||||
def pascal(n):
|
||||
'''Renvoie le triangle de Pascal de hauteur n'''
|
||||
triangle = [ [1] ]
|
||||
for k in range(...):
|
||||
ligne_k = ...
|
||||
triangle.append(ligne_k)
|
||||
return triangle
|
||||
|
||||
|
||||
Reference in New Issue
Block a user