logo

Crowdly

Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1)

Looking for Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) test answers and solutions? Browse our comprehensive collection of verified answers for Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) 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 value of the output in the following script?

my_array = np.array([[1, 2], [3, 4]])

for a in np.nditer(my_array):

print(a)

100%
0%
0%
0%
View this question
We have a pandas dataframe named cars with a column containing the brands of the cars. We want to add a new column to this dataframe that contains the capitalized names of the brand of the cars. Which method should we use?
0%
100%
0%
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 and smaller than 70 millions. Which command should I use?
0%
0%
100%
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?
100%
0%
0%
0%
View this question

What is the output of the following code?:

x = 5

if x % 2 == 0:

print('case 1')

else:

print('case 2')

0%
0%
0%
100%
View this question

What is the output of the following code?

x=6

if x % 2 == 0:

print('case 1')

elif x % 3 == 0:

print('case 2')

else:

print('case 3')

17%
100%
0%
0%
View this question

What’s the output of the following Python program?

l1 = np.array([10, 20, 30, 40, 50])

print(l1[np.logical_and(l1>20, l1<40)])

0%
0%
100%
0%
View this question

What’s the output of the following Python program?

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

0%
0%
0%
100%
View this question
What’s the output of the following Python program?

a, b = 'carl', 'mike'

a < b

38%
0%
13%
50%
View this question

What’s the output of the following Python program?

x = 8

y = 9

not(not(x < 3) and not(y > 14 or y > 10))

0%
0%
75%
25%
View this question

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

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