Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
CPSC 110 Exam 2 Review
0
%
0
0
0
Back
Restart
The problem statement says "call a function in a non-standard Python library." What reserved word has to be in the solution?
import
Oops!
Okay!
Suppose X = "100" and Y="105". What would be stored as result after the statement result = X + Y
100105
Oops!
Okay!
To call a function, you need to know 4 pieces of information. Name any 2.
library/location of the function, function name, expected arguments, returns a value or not
Oops!
Okay!
The problem statement says "call a function in the standard Python library". Does your solution need to include an import statement?
no
Oops!
Okay!
The problem description says "define a function that...". What Python reserved word should definitely be in your solution?
def (return is also acceptable)
Oops!
Okay!
The problem description says "keep repeating until the user enters an "X". What reserved word should definitely be in the solution?
while
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies