This command allows programmer to ask a question.
What is input()?
A Python data type that holds an ordered collection of values, which can be of any type.
What is list?
The data type of a= 10/ 5.
What is float?
The output of this code:
my_var =2 ** 3
What is 8?
if x > 2:
print("I love math.")
What is an if statement?
Addition (+), subtraction (-), multiplication (*), division (/), exponentiation (**), remainder (%) are examples of this input coding.
What is numeric operators?
An algorithm that has been coded into something that can be used by a machine.
What is a program?
A colon and four spaces of white space on the next code block.
What is "then" in an if statement?
If you see this character in your code:
!=
What is not equal to?
>=
What is greater than or equal to?
Whole numbers, positive or negative are known as this.
What are integers (int)?
A single command in a programming language.
What is statement?
This allows coding for a sequence of different outcomes.
What is the purpose of elif statement?
The data type of: 6/2
What is float?
A colon and four spaces of white space on the next code block.
What punctuation always follows an if statement?
This enables Python to ask a question and the user to insert data as a string.
What is the input( ) statement?
Represents a sequence of characters (text)
What is a string?
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
printoutand
NameError: name 'printoutand' is not defined
What is syntax?
The position of the third item in a list.
What is 2?
and, or, not
==
!=
>=
<=
What are Boolean operators?
This assigns a value to a variable.
What is = (single equal sign)?
A type of code that will only run if a certain condition is met.
What is conditionals?
This function displays the output of a program.
What is print?
If you see this:
%
in your code.
What is the modulo operator?
A type of code that will only run if a certain condition is met.
What is conditionals?