Python Programming - Objects - Discussion

Discussion Forum : Objects - General Questions (Q.No. 4)
4.
In Python, how can you access the attributes of an object?
Using the object.attributes syntax
Using the object[attribute] syntax
Using the object.attribute syntax
Using the get(object, attribute) function
Answer: Option
Explanation:
The attributes of an object in Python are accessed using the dot notation: object.attribute.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.