logo

Crowdly

Python. Быстрый старт

Looking for Python. Быстрый старт test answers and solutions? Browse our comprehensive collection of verified answers for Python. Быстрый старт at edu.digtlab.ru.

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

Рассмотрите фрагмент программного кода

from functools import reduce

f = lambda a, b: a if (a > b) else b

num = reduce(f, [47, 11, 42, 102, 13])

print (num)

 

После его выполнения на экране появится значение …

View this question

Результатом вызова display() функции

def display(**kwargs):

    for i in kwargs:

        print(i, end="

")

display(emp="Kelly", salary=9000)

 

является …

0%
0%
0%
0%
View this question

Вызов функции

def fun1(num):

   

return num + 25

 

fun1(5)

print(num)

возвращает …

0%
0%
0%
0%
View this question

Выберите все правильные вызовы функции

def fun1(name, age):

    print(name, age)

0%
0%
0%
View this question

Выберите правильное объявление функции

fun1(), чтобы успешно

выполнились следующие вызовы

fun1(25, 75, 55)

fun1(10, 20)

0%
0%
0%
0%
View this question

Результатом вызова функции

является

значение …

def outer_fun(a, b):

    def inner_fun(c, d):

        return c + d

    return inner_fun(a, b)

    return a

 result = outer_fun(5, 10)

print(result)

View this question

Рассмотрите рекурсивную функцию

def recНет:

     cur = 1

   

if n > 2:

       

cur = rec(n-1) + rec(n-2)

   

return cur

она

вычисляет ...

0%
0%
0%
0%
0%
View this question

Использовать рекурсию уместно в случаях, если …

0%
0%
View this question

В процессе выполнения фрагмента

программного кода

def countdownНет:

   

print

Нет

   

if n // 2 == 0:

       

countdown(n - 1)

countdown(3)

рекурсивная

функция будет вызвана … раз.

View this question

Функция, с помощью которой можно определить время

выполнения рекурсии, находится в библиотеке …

View this question

Want instant access to all verified answers on edu.digtlab.ru?

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