Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Toon:
- def __init__(self, pname, prole):
- self._pname = pname
- self._prole = prole
- def game(character):
- print character._pname + " the " + character._prole + " begins their journey.."
- cont = "yes"
- print "Welcome to <GameName>!"
- while cont.lower() == "yes":
- name = raw_input("What is your character's name? ")
- role = raw_input("What is your character's class? ")
- character = Toon(name, role)
- game(character)
- cont = raw_input("Your journey has ended, would you like to start a new game? ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement