IT first q Flashcards
What do you call a value given to a function when it is run?
an arguement
What do you call one or more lines of code that perform a complete action?
a statement
What do you call a series of statements that has a name and performs some task?
a function
What do you call a value written out directly inside the code?
a literal
What what is an expression?
anything that can be turned into a value
How do you create a variable in Python?
with an assignment statement
Where do arguments appear in a call to a function?
inside parentheses right after the function name
What do you call a statement that gives a value to a variable?
an assignment statement
What do you call a location in RAM with a name that holds a value?
a variable
What do you call a statement that runs a function?
a function call
What do you call a sequence of characters?
a string
Is there a limit to the number of arguments you can use in a print function?
no
What is the name of the function used to read input from the keyboard?
Input
What is wrong with the following variable name?
1st_try
It begins with a number
Write an assignment statement that asks the user for an integer, converts it to the correct data type and assigns it to the variable number.
number = int(input(“Please enter an integer: “))