Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
When does the finally part of a try run? | StemPy Lab
Quizzes
/
When does the finally part of a try run?
Python Programming
Easy
High School (9–10)
High School (11–12)
Undergraduate
General
Python Essentials › Errors and Exceptions
Created by
StemPy Lab
When does the finally part of a try run?
Only when there is an error
Never
Only when there is no error
Always, with or without an error
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← A program has try with int("x"), except ValueError with print("bad"), and then print("end") after. What does it show?
A loop must ask until the answer is a whole number. Which pieces does it need? →
More on
Python Essentials › Errors and Exceptions
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
Say which error each line gives, before you run it.
Easy
The data reader of the lesson reports each bad line with a message.
Medium
For each job, say whether you would look before you leap (an if) or try and catch (try and except)…
Easy
Write a function percent(part, total) that gives part / total * 100.
Medium
All problems on this topic →