Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
def f(n) returns n + 1. What does print(f(f(1))) show? | StemPy Lab
Quizzes
/
def f(n) returns n + 1. What does print(f(f(1))) show?
Python Programming
Medium
Middle Stage (6–8)
High School (9–10)
High School (11–12)
Undergraduate
General
Python Basics › Functions
Created by
StemPy Lab
def f(n) returns n + 1. What does print(f(f(1))) show?
3
1
2
11
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← def f(n) only has print(n * 2) inside. What does print(f(4)) show?
A student defines def greet(): with a print inside, runs the program, and nothing is shown. What is the mistake? →
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 →