logo

Crowdly

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

Шукаєте відповіді та рішення тестів для Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1)? Перегляньте нашу велику колекцію перевірених відповідей для Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) в moodle.essec.fr.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

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%
Переглянути це питання
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%
Переглянути це питання
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%
Переглянути це питання
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%
Переглянути це питання

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%
Переглянути це питання

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%
Переглянути це питання

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%
Переглянути це питання

What’s the output of the following Python program?

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

0%
0%
0%
100%
Переглянути це питання
What’s the output of the following Python program?

a, b = 'carl', 'mike'

a < b

38%
0%
13%
50%
Переглянути це питання

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%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.essec.fr?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!