Ad:
Q1. Write a Python program to Input 2 numbers and find sum using parameterized constructor. 1
class Sum: def __init__(self, a, b): self.num1=a self.num2=b c=self.num1+self.num2 print("Sum =",c) a=int(input("Enter 1st Number: ")) b=int(input("Enter 2nd Number: ")) s=Sum(a,b)
Ad: