# Name Program ## ## By: Brian Gross ## ## On 4/19/11 ## Demonstrates a class #class Name: def createName(self,name): self.name = name def displayName(self): return self.name def saying(self): print 'Hello, %d' % self.namefirst = Name()second = Name()a = raw_input('Please enter your name: ')first.saying(a)# http://www.youtube.com/watch?v=M1BAlDufqao #class Name: def __init__(self, input): self.name = input def saying(self): print self.name a = raw_input('Please enter your name: ') #msg = Name("Liz") # here i am faking some data to simplify and testmsg = Name(a) # once that worked i put in the raw inputmsg.saying()