MCQOPTIONS
Saved Bookmarks
| 1. |
What is hasattr(obj,name) used for? |
| A. | tTo access the attribute of the object |
| B. | tTo delete an attribute |
| C. | tTo check if an attribute exists or not |
| D. | tTo set an attribute |
| Answer» D. tTo set an attribute | |