What is printed when the following statements execute?
x = 10
x = x - 2
x = x + 7
x = x + 2
print(x)
17
What programs are the same as a snake and coffee
Python and Java
Debugging: What is wrong?
current_time_Int = Int(current_time_str)
Both "int" should be lower case
current_time_int = int(current_time_str)
10 % 4
2
What is printed when the following statements execute?
n = input( “on my pizza”)
print(“I like sausage”, n)
I like sausage on my pizza
Name just 1 "statement"
while statements, for statements, if statements, and import statements
Debugging: Find the error.
n = Input("What time is it now (in hours)?)
n = int(N)
input is lower case and "N" lower case
n = Input("What time is it now (in hours)?)
n = int(N)
40 % 4 =
0
Write a program that prints We love icecream! 1000 times.
Hint:
i = We love icecream!
for i in range():
print()
i = We love icecream!
for i in range(1000):
print( i )
Name the two school counselors at Valley
Eble and Lucckett
The asterisk (*) stands for
multiplication
i = "I love Cookies!"
For i in Range():
Print()
for, range, print needs to be lower case
47 % 7
5
x = 12
y = 8
print("Sum is: " + str(x + y))
Sum is 20
A double asterisk (**) stand for
exponent
Find the errors if any.
wn = turtle.Screen()
yertle = turtle.Turtle()
No errors in code
2
if first = 2
if second = - 3
first = float(input("Enter the first number"))
second = float(input("Enter the second number"))
print(first + second)
-1
What do these do?
( // )
Gives a division an integer result
first = float(input("Enter the first number"))
second = Float(input("Enter the second number"))
third = float(Input("Enter the Third number"))
fourth = float(input("Enter the fourth number"))
fifth = float(input("Enter the Fifth number"))
print(first * Second * third * fourth * fifth)
Upper case third, fifth, float, second, and input all should be lower case.
What is the pattern for numbers 25 – 30?
with % 5
0, 1, 2, 3, 4,
5