logo

Crowdly

Programmation en Python IDSI21024 (202400-668)

Шукаєте відповіді та рішення тестів для Programmation en Python IDSI21024 (202400-668)? Перегляньте нашу велику колекцію перевірених відповідей для Programmation en Python IDSI21024 (202400-668) в moodle.essec.fr.

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

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

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%
Переглянути це питання
What is the correct way to create a function in Python?
0%
0%
100%
Переглянути це питання

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%
Переглянути це питання
What does the Python input() function do?
0%
0%
0%
0%
Переглянути це питання
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%
Переглянути це питання
Which method can be used to return a string in upper case letters?
100%
0%
0%
Переглянути це питання
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%
Переглянути це питання
In Python, variables are
25%
75%
0%
Переглянути це питання
What is the correct syntax to output the type of a variable or object in Python?
0%
0%
100%
0%
Переглянути це питання

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

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