Advertisements
Advertisements
प्रश्न
Give the statement to check whether the attribute str exists in the class Test whose object is T1.
अति संक्षिप्त उत्तर
Advertisements
उत्तर
hasattr(T1, "str")
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
