Instantiate an Object


#1



Hi,
Can anyone see where I'm going wrong? My error message is 'AttributeError: 'Triangle' object has no attribute 'check_angles'


Replace this line with your code.


#2

def check_angles()

needs to be in the same scope as def __init__().


#3

Ah, got it working now. Thank you!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.