logo

Crowdly

Browser

Add to Chrome

[25-26] Algorithmique avancée 2 [S3] [SPE]

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?

print

(liste[--])

Note: Do not rewrite the entire print statement — just give the value of --.

View this question

Given the following list:

 liste=["maths", "info", "python", "exposants", "alpha", "fonctions", "parabole", "equilateral", "orthogonal", "cercles", "isocèle" ]

What does print(liste[4]) output?

0%
0%
0%
0%
View this question

What does the following code display?

t=[ ]

i=1

for i in range (1,20,2):

t.append(i)

print (t)

0%
0%
0%
View this question

Which statement allows you to display the last element of a list L?

Note: multiple answers are possible.

0%
0%
0%
0%
0%
0%
0%
View this question

What is the output of the following nested <code>for</code> loop

nombres = [

10, 20

]

articles = [

"Chaises", "Tables"

]

for x in nombres:

  for y in articles:

    print(x, y)

View this question
For

lst = [10,20,30,40,50,60,70,80]

What does

lst[1:7:3] return?
0%
0%
0%
0%
View this question
With

lst = ['x','y','z']

What does

lst[3:0:-1] return?
0%
0%
0%
0%
View this question
For the list:

lst = ['a','b','c','d','e','f','g']

Which expression returns the reversed list?

0%
0%
0%
0%
View this question
Given

lst = [1,2,3,4,5,6,7,8,9]

What does

lst[-5:-1] return?
0%
0%
0%
0%
View this question
For

lst = [0,1,2,3,4,5,6]

What does

lst[::2] return?
0%
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.esme.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome