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-29/25-NSI-29.pdf
Normal file
BIN
Sujet_bac/Pratique/BNS_2025/25-NSI-29/25-NSI-29.pdf
Normal file
Binary file not shown.
16
Sujet_bac/Pratique/BNS_2025/25-NSI-29/sujet-29.py
Normal file
16
Sujet_bac/Pratique/BNS_2025/25-NSI-29/sujet-29.py
Normal file
@@ -0,0 +1,16 @@
|
||||
def trouver_intrus(tab, g, d):
|
||||
"""Renvoie la valeur de l'intrus situé entre les indices g et d
|
||||
dans le tableau tab où :
|
||||
tab vérifie les conditions de l'exercice,
|
||||
g et d sont des multiples de 3."""
|
||||
if g == d:
|
||||
return ...
|
||||
else:
|
||||
nombre_de_triplets = (d - g) // ...
|
||||
indice = g + 3 * (nombre_de_triplets // 2)
|
||||
if ...:
|
||||
return ...
|
||||
else:
|
||||
return ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user