Investigate
Look at the code on the right.
Run it and see what it does.
Click on the pencil icon at the top to see the code again.
change the numbers 10, and 1 to something else.
Change myLives = myLives - 1 to myLives = myLives -=2
Change the variable - basketCanHold to another number.
What do you think str( ) does?
print("Oh no! I got hit!")
#Change 1 to another number. What happens if you try -- 1?
basketCanHold = 5 #Try changing this number
print("An apple basket can hold " + str(basketCanHold) + " apples.")
print("My friends and I have picked "+ str(applesCollected) + " apples")
print("How many baskets do I need?")
print("I will have... " )
print(applesCollected//basketCanHold )
print(applesCollected%basketCanHold )
print("apples left over.")
print("In total, I will need...")
print(applesCollected//basketCanHold + 1)