mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-09 11:30:38 +00:00
formatte file
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
def appartient(elt,tableau):
|
||||
def appartient(elt, tableau):
|
||||
for i in tableau:
|
||||
if i == elt:
|
||||
return True
|
||||
@@ -6,6 +6,7 @@ def appartient(elt,tableau):
|
||||
continue
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
print(appartient(5,[1,2,3,4,5,6,7,8,9,10]))
|
||||
print(appartient(5,[1,2,3,4,6,7,8,9,10]))
|
||||
print(appartient(5, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]))
|
||||
print(appartient(5, [1, 2, 3, 4, 6, 7, 8, 9, 10]))
|
||||
|
||||
Reference in New Issue
Block a user