Skip to content
Snippets Groups Projects
Commit de97792f authored by nicolas.albanesi's avatar nicolas.albanesi
Browse files

Modification des tuples

parent 66eb8c78
No related branches found
No related tags found
1 merge request!11Resolve "Create function get_possibilities"
......@@ -6,7 +6,7 @@ def get_possibilities(l: list):
# Transforme the list in list of tupples with their indexes
for x, _ in enumerate(l):
l[x] = (l[x], x)
l[x] = (x, l[x])
# ! la valeur 20 est hardcodée. Paramètre de fonction ??
......@@ -21,22 +21,8 @@ def get_possibilities(l: list):
return p
'''
[1, 2, 3, 4, 5]
[1, 2, 3, 4, 5, 6, 7, 8, 9]
| |
| err |
'''
def lagrange_compute(l: list) -> polynome:
pass
def check_nb_error(l: list, p: polynome) -> int:
pass
\ No newline at end of file
pass
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment