True or false?
While loop : it is a repetition statement that will repeat a code block a counted 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 are the 3 selection commands you learned?
if, elif, else
What data type is text?
string or character
What is missing in this line of code:
for in loop:
i or another loop marker
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 command term could follow an if statement on the next line of code?
else or elif
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 command should you use instead of multiple if statements?
elif
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
In our relpit.com application is an IDE, what does this stand for?
Integrated Development Environment
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
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?
15
sum starts at 0 and each value of i is added through the loop.
0+1, 1+2, 3+3, 6+4, 10+5
What symbol comes after an if statement?
:
What is the output?
1,2