Dark theme

The whole program should now look something like:

name = input("Enter your name to start: ")
print("Welcome " + name)
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.")

We can now:

  • Output a story to the screen.
  • Input information into the program.
  • Store information in variables.

We need one more thing to make a basic game - some way of making decisions, or, as we call it in computing "selection"...

[Home > Part 1 > Next]