All pastes #2048280 Raw Edit

Someone

public python v1 · immutable
#2048280 ·published 2011-04-19 14:43 UTC
rendered paste body
# 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()