print("Hello", "World", "CS303E")
What is 'Hello World CS303E'? (ignore the single quotes)
t = Template('Hey, $name!')
t.substitute(name="BOB")
What is Hey, BOB?
The output of:
import turtle
screen = turtle.Screen()
turtle.right(90)
turtle.forward(100)
What is [empty screen]? (nothing is drawn!)
print(36 / 4)
What is 9.0?
print("Hello" + "World" , " CS303E")
What is 'HelloWorld_ _CS303E' (ignore the quotes)
a = 2
b = 3
f'Five plus ten is {a + b} and not {2 * (a + b)}.'
What is Five plus ten is 5 not 10?
Type the fixed line of code in chat
What is import.turtle?
x=5
y="5"
print(x==y)
What is False?
cheese = "Cheese"
'Hello, {}'.format(cheese)
What is Hello, Cheese?
What is Hey 15, there is a Bob error!?
What is turtle.forward(150)?
print(-18 // 4)
What is -5?
strOne = str("boo")
strTwo = "boo"
print(strOne == strTwo)
What is True?
def greet(name, question):
... return f"Hello, {name}! How's it {question}?"
greet('Bob', 'going')
What is Hello, Bob! How's it going?
Type the corrected version of the mistake in chat (sorry for losing the Jeopardy format!)
screen.bgcolor("lightblue")
What is (), **, + not, or?
Statement with output ' 10' (there are 10 spaces)
What is print("10".rjust(10))?
This many of the following are valid strings:
X = “we’re okay”
Y = “12”
Z = ‘we’re okay’
A = '12'
B = hey
C = ‘Unhand me”
What is 3?
Output of:
t.pendown()
t.forward (50)
t.backward (50/2)
t.right (90)
t.forward (100)
t.left(90)
t.penup()
Assume code is syntactically correct
What is T?
print(bool(0), bool(3.14159), bool(-3), bool(1.0+1j))
What is False True True True?