Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

object has no attribute python

See if their any spell mistake or,
Checkout that is there any function defined or not which you have used for 
your object in that object class in which this error showing

class Human():
  	def hands():
      	pass
    def eyes():
      	pass

h1 = Human()
h1.wings() 
#it will give error because you have not any attributes like wings. Here only two
#attributes hands and eyes.
      
Reason : object not finding attribute named like wings
 
PREVIOUS NEXT
Tagged: #object #attribute #python
ADD COMMENT
Topic
Name
5+1 =