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!

chr="envers"

result=""

for car in chr:

xxxx

print(result)

Which code below should be used in place of the xxxx to get "srevne"

as output (the reverse of "envers")?

67%
0%
33%
33%
View this question
What is a correct method to find statistical correlations between columns in a DataFrame?
0%
100%
0%
0%
View this question
Which operator symbol is used by Python to assign values to variables?
0%
100%
0%
0%
View this question
x="huit"

print(x[:])

print(x[0:4])

What is the difference between the outputs of two print?

25%
25%
75%
0%
View this question

When applied to a list, the count() method counts the number of times an occurence appears in the list.

For example:

[1,2,3,10,10].count(1) returns 1

[1,2,3,10,10].count(10) returns 2

[1,2,3,10,10].count(0) returns 0

We want to write a function that takes a list of integers and returns True when it contains exactly two occurences of the number 10 and at least three occurences of number 5, and False otherwise. What is the best way to replace xxxx in the following code to achieve our goal?

def test(list_nbs):

xxxx

75%
25%
0%
View this question
I have a pandas dataframe named 'brics' with columns names given by 'country', 'capital', 'area' and 'population' and indices given by 'FR', 'IT' and 'UK'. I want to construct a dataframe made only of the rows in brics with countries' population larger than 50 millions. Which command should I use?
0%
33%
33%
33%
View this question
I have a dataset in the form of a csv file. Which package should we use to work with these data in python?
0%
0%
0%
33%
View this question
What is the ouput of the following code?

x = 15

x = x + 5

print(x)

0%
100%
0%
0%
View this question
Comments are lines of text that subtly change the way a Python program runs.
100%
0%
View this question
What’s the output of the following Python program?

'carl' < 'mike' and True != False

67%
0%
0%
33%
View this question

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

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