True or false?
While loop : it is a repetition statement that will repeat a code block a known number of times
false
True or false?
Repeating a block of code forever or for a set number of times is called a loop.
True
What command do you get user response?
input()
True or false ?
All the statements below the while loop with tab spacing are part of the loop. This code block will be repeated when the condition is true.
True
What application did we use for python coding?
PyCharm
What data type is text?
strings
What is missing in this line of code:
print(hello world")
opening quotes
For Python code that needs repeated, it needs to be ___ under the loop.
A-bolded
B-indented
C-underlined
D-colored
B-indented
What symbol will multiply numbers?
*
What is noun in this line of code:
print("top of the spooky", noun ,".")
variable
What data type is 3.56?
float
In Python, a ________ loop repeats a code block as long as the condition of the code is True.
While
What data type is the number 3?
int
What is a variable?
stored piece of information
What are the 3 selection commands you learned?
if, elif, else
53
This loop can only be used when the programmer knows the number of times a code is to be repeated.
For
Are they the same: Cat and cat
NO
A condition is :
A- a statement that is either True or False
B- an integer
C- a string
D- a list
A- a statement that is either True or False
What is the output?
1,2
In programming, what is iteration?
A- The repetition of steps within a program
B- A decision point in a program
C- The order in which instructions are carried out
D- Testing a program to make sure it works
A- The repetition of steps within a program
what is the output??
for num in range (0,15,3):
print(num)
a-0,3,6,9,12
b-0,3,6,9,12,15
a-0,3,6,9,12
What is the output?
15
What symbol comes after an if statement?
:
What comes after an if statement?
elif statement or else