Unit 3.8/3.10 Hacks
def make_food():
pass
while True:
make_food()
if input("still hungry? ") == "n":
break
for i in range(10, 0, -1):
print(i)
xs = [3, 16, 29, 42, 55, 68, 81]
idx = 0
while idx < len(xs):
print(xs[idx])
idx += 1
nums = [38, 45, 67, 83, 78]
m = nums[0]
for n in nums:
if n < m:
m = n
print(m)
Lists quiz