Did you get it working? If not, here's a version that works:
print("After many days wandering the forest, you come across " +
"the entrance to what looks like a cave or mine - " +
"can this be what you are looking for?")
print("You've been told the golden crown lies in the depths " +
"of the old mines, guarded by a terrible beast.")
An important thing to know about code is that there isn't a single "right" answer - if it works, it works. If you have something different and it does what you want, that's great - you're in charge!
This code is all very good, but it's not very personal. Let's add in the user's name.
Change the welcome message code at the start of the game so it looks like this, replacing "YourName" with your name in quotes:
name = "YourName"
print("---Welcome to the game " + name + "---")
Note that name
is not in quotes.
Try running the program again. You should see your name in the welcome message.
[Home > Part 1 > Next]