Looking for Мова програмування Python test answers and solutions? Browse our comprehensive collection of verified answers for Мова програмування Python at elr.tnpu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Скільки рекурсивних викликів робиться в процесі підрахунку суми списку [2,4,6,8,10]?
Вкажіть істинне чи хибне твердження: у базовому випадку рекурсивний метод викликає сам себе зі зменшеним варіантом вихідної задачі.
Яким буде результат виконання програми? Крапками позначено відступи.
def main():....num = 0....show_me(num)
def show_me(arg):....if arg < 10:........show_me(arg + 1)....else:........print(arg)
main()
Оберіть результат виконання програми:from random import *mass = []for i in range(4):....mass.append(randint(1, 1))print(mass)