Monday, February 2, 2026

Review

If you are still not comfortable with the logic operations in Python, please review last week's lesson. I have fixed the videos so that you can watch them now.

Help with the Programming Challenge

If you have not figured out how to do the Programming Challenge, here is the code for the example I gave last week.

print("Welcome to Adventure Prep!")
carrying_map = input("Are you carrying a map? ")
enough_food = input("Do you have enough food? ")
backpack_packed = input("Is your backpack packed? ")

if carrying_map == "yes" and enough_food == "yes" and backpack_packed == "yes":
    print("You are ready for your adventure!")
elif carrying_map == "no":
    print("You are not ready for an adventure. Make sure to bring a map!")
elif enough_food == "no":
    print("You are not ready for an adventure. Make sure to bring enough food!")
elif backpack_packed == "no":
    print("You are not ready for an adventure. Make sure to pack your backpack!")
else:
    print("You are not ready for an adventure. Check your supplies!")

    

This is just one way to structure the logic for this example. With and, or, and not, you can create more complex conditional statements to handle different scenarios. Also, your program should be for your own adventure, not the example I gave.

Remember to name your Python file lastname_prep.py and put it in your OneDrive folder.