

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of the following code? class fruits: def __init__(self, price): self.price = price obj=fruits(50) obj.quantity=10 obj.bags=2 print(obj.quantity+len(obj.__dict__)) |
A. | 12 |
B. | 52 |
C. | 13 |
D. | 60 |
Answer» D. 60 | |