Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Community ▾
A
A
Quizzes
/
A function prints the length of a tuple, but it has no return statement. The program prints what the call gives back. What does the program print?
Python Programming
Easy
High School (9–10)
Python Basics › Functions
PCEP (Python Institute)
Created by
StemPy Lab
Stuck? Show a hint
A function prints the length of a tuple, but it has no
return
statement. The program prints what the call gives back.
def show(v): print(len(v), end=" ") result = show((1, 2, 3)) print(result)
What does the program print?
3
3 None
3 3
None
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A program deletes a slice with a step from a list, and then adds one item. What does the program print?
A function writes into a dictionary that it is given. It has no return statement. What does the program print? →
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 →