Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Character:
- def __init__ (self, char_name, char_description):
- self.name = char_name
- self.description = char_description
- self.conversation = None
- def describe(self):
- print(self.name + " is here! ")
- print(self.description)
- def talk(self):
- for loop in range(1):
- print("Hi i'm Dave")
- question1 = input("How are you? ")
- if question1 == "Good" or question1 == "good":
- print("OK nice")
- elif question1 == "Bad" or question1 == "bad":
- print("I'm sorry to hear that")
- else:
- print("I'm sorry i don't understand")
- -------------------------------------------------------
- from character import Character
- dave = Character("Dave", "A smelly zombie")
- dave.describe()
- dave.talk()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement