logo

Crowdly

Browser

Add to Chrome

Мова програмування Python

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!

Оберіть результат виконання програми:

from random import *

L = []

L.append(choice('123abc'))

print(L)

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

Здійснити моделювання кидання грального кубика 30 разів. Обчислити частоту випадання кожного числа, медіану та середнє значення.

View this question

Оберіть ряд чисел, який буде створенно після виконання наступного алгоритму:

for i in range(1, 5 + 1):

....print(i)

0%
100%
0%
0%
View this question

Оберіть результат виконання програми:

s = []

s = [i for i in range(10)if i > 5]

print(s)

0%
100%
0%
0%
View this question

Оберіть результат виконання програми:

def func(n):

....n = n + 1

print(func(0))

0%
0%
0%
100%
View this question

Введіть результат виконання програми:

t = [4, 2, 1, 3]

n = len(t)

def syma(k):

....S = 0

....for i in range(n):

........S = S + k[i]

........i=i+1

....return(S)

print(syma(t))

View this question

Оберіть результат виконання програми:

def summ(arg1, arg2):

....return arg1 + arg2

tup = 1, 2

print(summ(tup))

0%
0%
0%
0%
View this question

Оберіть область видимості змінної x.

x = 10

def func(x):

....print(x)

....x = 3

func(x)

print(x)

0%
0%
0%
0%
View this question

Введіть результат виконання програми:

value = 0

def func(arg=1):

....arg = arg + 1

....return arg

print(func()+ func(value))

View this question

Оберіть термін який характеризує змінну x для вказаної функції:

def foo(x):

....return x + 2

a = 2

print(foo(a))

0%
100%
0%
0%
View this question

Want instant access to all verified answers on elr.tnpu.edu.ua?

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

Browser

Add to Chrome