🏆 Your Python Adventure!
You've made it to Week 12! 🎉 You know variables, strings, math, input, if/else, loops, lists and functions. Now it's time to put it all together in your own mini Python adventure!
💡 Final Challenge
Create your own Python adventure story! Ask the player questions, use their answers, and make decisions based on what they choose.
What to do:
-
1
Ask the player their name and favourite thing
-
2
Use if/else to send them on different paths
-
3
Use a function and a list somewhere!
⚙ Example Project
def welcome(name):
print("Welcome,", name + "! Your adventure begins!")
items = ["torch", "map", "potion"]
name = input("What is your name, brave coder? ")
welcome(name)
print("You find a fork in the road.")
choice = input("Go left or right? ")
if choice == "left":
print("You find a dragon! 🐉")
print("You use your", items[2], "to escape!")
else:
print("You discover a treasure chest! 💎")
print("You check your", items[1], "to find your way home.")
print("The End! Well done,", name + "! 🏆")