9

Proper use of Classes in Python

view full story
linux-howto

http://ubuntuforums.org – I have this (pseudo)code, take a look at it. Code: class Scenes(object):     def room1(self):         print "You are standing in a deserted cave."         print "Enter the next room?"         user_input = raw_input("Y/N\n")         if user_input == "Y":             scenes.room2()         elif user_input == "N":             exit()         else:   (Hardware)