Warm-up (not to turn in)
1. What is output by the
following code?
print(4 + 3 /
4 * 10)
count = 5
price = 8.0
print(price /
count)
print("The price is: " + price)
2. What is output by the following code?
from turtle import *
for i in range(10):
circle(i)
up()
forward(i)
down()
3. Write
a function that generates a random number between 1 and 100, prompts
the user for a number between 1 and 100 and prints out whether or not
they were equal.