IT 117: Intermediate to Scripting
Class 3 Ungraded Quiz
-
What are the four types of expressions?
-
What is the name of the function used to get a value from the user?
-
Where does the loop variable in a
for
loop get its values?
-
When does a
while loop stop running?
-
How many arguments does the
range
function take?
-
What arguments would you give
range
to get the odd numbers from 1 to 5?
-
Write the header for the function work that takes
parameters min and max.
-
What statement allows a function to return a value to the function call.
-
Write the Python statement to create a file object for reading on the file
students.csv
-
Write a
for
loop that uses the file object file
to print the lines in that file.