






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is.
Some library functions are built into the Python interpreter. - Correct Answers ✅T You do not need to have an import statement in a program to use the functions in the random module. - Correct Answers ✅F A function in Python can return more than one value. - Correct Answers ✅T A file that data is written to is known as a(n).
This is a section of code that gracefully responds to exceptions.
You can have more than one except clause in a try/except statement. - Correct Answers ✅T The else suite in a try/except statement executes only if a statement in the try suite raises an exception. - Correct Answers ✅F The finally suite in a try/except statement executes only if no exceptions are raised by statements in the try suite. - Correct Answers ✅F This term refers to an individual item in a list.
Which of the following statements creates a tuple?
When you call a string's split method, the method divides the string into two substrings. - Correct Answers ✅F A ___ error does not prevent the program from running, but causes it to produce incorrect results.
A string literal in Python must be enclosed in.