logo

Crowdly

Programmation en Python IDSI21024 (202400-667)

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

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

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?
100%
0%
0%
View this question
You run an algorithm. You want to stop your algorithm when the error is less than 0.01. Which tool would you use?
0%
0%
0%
100%
View this question

What is the output of the following code?

a, b, x, i = "3", 5, 0, 0

while b>2:

x+=2

b+=-1

print(x)

0%
25%
75%
0%
View this question
When you have multiple lines in an if block, how do you indicate the end of the if block?
0%
0%
100%
0%
View this question
When using the Pandas drop() method, what argument allows you to change the original DataFrame instead of returning a new one?
100%
0%
0%
0%
View this question

chr="arbre"

cpt=0

for car in chr:

cpt+=1

print(cpt)

Which operation below does the same as the program above?

100%
25%
0%
View this question
How do you start writing an if statement in Python?
0%
0%
0%
100%
View this question

What will the following code print out?

x = 0

if x < 2:

print('Small')

elif x < 10:

print('Medium')

else:

print('LARGE')

print('All done')

75%
25%
0%
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!