Challenge 1
Send 5 into the paused yield and print the next yielded total.
def counter():
total = 1
while total < 10:
amount = yield total
total += amount
generator = counter()
print(next(generator))
print(generator)
Press Ctrl⌘Enter to check your answer