Как создается функция в Python

функции

Quiz
•
Science
•
5th Grade
•
Medium
Igor Perekalskiy
Used 1+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
В каком варианте кода присутствует ошибка
def draw_box():
for in range(5):
print('*' * 7)
def draw_box():
for _ in range(5):
print('*' * 9)
def draw_box():
for _ in range(5):
print('*' * 10)
def draw_box():
for _ in range(5):
print('*' * 15)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Как вызвать данную функцию
def print_message() :
print('Я - Артур,')
print('король британцев. ')
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Как вызвать данную функцию
def draw_box(height, width):
for i in range(height):
print('*' * width)
create_box(7, 5)
draw_box('7', '5')
height =5
width=7
print_box(height, width)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
X глобальная или локальная переменная
x = 5
def func():
print(x)
func()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Данная функция возвращает значение?
def func():
x = 5
x += 10
return x
result = func()
print(result)
Не возвращает
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Функция вернет?
def func():
x = 5
y = 10
return x, y
result1, result2 = func()
print(result1, result2)
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Что выведет код
result = lambda x, y: x + y
print(result(4, 5))
6
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
что такое lambda в Python
Similar Resources on Wayground
10 questions
PEMANASAN UNBK

Quiz
•
KG - 9th Grade
10 questions
Snake Charmer

Quiz
•
5th Grade
10 questions
Force and Motion grade 5

Quiz
•
5th Grade
10 questions
Fingerprint Evidence: Classifying Fingerprints

Quiz
•
5th Grade
10 questions
Force (Year 6)

Quiz
•
4th - 6th Grade
13 questions
Forces 2

Quiz
•
5th Grade
13 questions
Forces review

Quiz
•
5th Grade
10 questions
FRICTIONAL FORCE

Quiz
•
3rd - 6th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade