+ 1
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)
2 Respostas
+ 3
This will help you:
https://code.sololearn.com/cK53Snt5Z68l/?ref=app
+ 1
Thank you