Re: [Tutor] accessing attribute from python programming for absolute beginner

2016-12-26 Thread Alan Gauld via Tutor
On 26/12/16 04:08, syafiqah amir via Tutor wrote: > i did not achieve the desired outcome which is the name of the critters did > not print > #attribute Critter#Demonstrates creating and accessing object attributes > class Critter(object):"""A virtual pet"""def __init__(self,name):

[Tutor] accessing attribute from python programming for absolute beginner

2016-12-26 Thread syafiqah amir via Tutor
I did the critter programming however i did not achieve the desired outcome which is the name of the critters did not print on the screen insted of self.name .I'm not sure what is wrong with this .Hope someone can help me.Thank you so much . #attribute Critter#Demonstrates creating and