logo

Crowdly

Programmation en Python IDSI21024 (202400-668)

Looking for Programmation en Python IDSI21024 (202400-668) test answers and solutions? Browse our comprehensive collection of verified answers for Programmation en Python IDSI21024 (202400-668) at moodle.essec.fr.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

What is the output of the following code?

def func(s, c):

return [i for i, x in enumerate(s) if c == x]

func('toto', 'o')

33%
0%
0%
67%
View this question

Tell what is the output of the following code?

x=10

chr="voitures"

for car in chr:

if car in "aeiouy":

x+=2

else:

x+=1

print(x)

0%
25%
75%
0%
View this question
What is the correct way to create a function in Python?
0%
0%
100%
View this question

What is the output of the following code?

def f(x, y):

return (x+y, x-y)

x, y = 100, 200

f(y, x)

50%
75%
0%
View this question
What does the Python input() function do?
0%
0%
0%
0%
View this question
I have a pandas dataframe named 'brics' with columns names given by 'country', 'capital', 'area' and 'population'. I want to construct a pandas dataframe with the only two columns 'country' and 'capital'. Which command should I use?
33%
0%
67%
View this question
Which method can be used to return a string in upper case letters?
100%
0%
0%
View this question
I have a pandas dataframe named df. One serie's name is 'col'. How do I retrieve all the serie associated with 'col'?
0%
50%
100%
0%
View this question
In Python, variables are
25%
75%
0%
View this question
What is the correct syntax to output the type of a variable or object in Python?
0%
0%
100%
0%
View this question

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

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