Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
What does the word def do? | StemPy Lab
Quizzes
/
What does the word def do?
Python Programming
Easy
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
Python Basics › Functions
Created by
StemPy Lab
What does the word def do?
It defines a function, and does not run it
It runs a function
It deletes a function
It prints a function
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← squares = []. A loop does squares.append(n * n) for n in range(1, 4). What is squares?
def area(length, width) returns length * width. What is area(5, 3)? →
More on
Python Basics › Functions
Discussion (0)
Log in
to join the discussion.
Loading…
All questions on this topic →
Problems on this topic
A function ticket_price(age) gives the price of a museum ticket: under 5 is free (0), under 13 pays…
Medium
Same name, two variables
Medium
This program should show The total is 50. It stops with an error. Find the fault and fix it.
Medium
Which of these four programs shows something? Say it before you run each one.
Easy
All problems on this topic →