OOP in python | Sololearn: Learn to code for FREE!


OOP in python

I have a question on how I can add the two tuples a and b ,and my output should be Orange&Apple(3.5) my code is class Juice: def __add__(a,b): a=Juice('orange,1.5) b=Juice('Apple',2.0) result= a+b print(result)

7/31/2021 3:04:58 PM

ndatinya justin

2 Answers

New Answer


This will help you: https://code.sololearn.com/cK53Snt5Z68l/?ref=app


Thank you