Looking for [25-26] Algorithmique avancée 2 [S3] [SPE] test answers and solutions? Browse our comprehensive collection of verified answers for [25-26] Algorithmique avancée 2 [S3] [SPE] at moodle.esme.fr.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Let’s consider the following list:
]liste = ["maths", "info", "python", "exposants", "alpha", "fonctions", "parabole", "equilateral", "orthogonal", "cercles", "isocèle"
What should replace -- to display the string isocèle?
(liste[--])print
Note: Do not rewrite the entire print statement — just give the value of --.
Given the following list:
liste=["maths", "info", "python", "exposants", "alpha", "fonctions", "parabole", "equilateral", "orthogonal", "cercles", "isocèle" ]
What does print(liste[4]) output?
t=[ ]
i=1
for i in range (1,20,2):
t.append(i)
print (t)
Which statement allows you to display the last element of a list L?
Note: multiple answers are possible.
nombres = [
10, 20]
articles = [
"Chaises", "Tables"]
for x in nombres:
for y in articles:
print(x, y)
lst = [10,20,30,40,50,60,70,80]What does
lst[1:7:3] return?
lst = ['x','y','z']What does
lst[3:0:-1] return?
lst = ['a','b','c','d','e','f','g']Which expression returns the reversed list?
lst = [1,2,3,4,5,6,7,8,9]What does
lst[-5:-1] return?
lst = [0,1,2,3,4,5,6]What does
lst[::2] return?