-
What are the four types of expressions?
literals, variables, calculations with operators and function calls
-
How many arguments does the
range
function take?
one, two or three
-
What arguments would you give
range
to get the odd numbers from 1 to 5?
1,6,2
-
What statement allows a function to return a value to the function call.
return statement
-
Write the Python statement to create a file object for reading on the file
students.csv
file = open("students.csv", "r")
-
To make a script executable, what permissions must the script have?
read and execute
-
What special line must be added to a script to run it without
typing python3 on the command line?
hashbang line
-
What do you call a collection of things stored one right after another?
a sequence
-
What are the three data types that are a collection of things stored one right after the other.
lists, tuples and strings
-
What is the string method that breaks up a string into a list of values?
split