Answer:
class Phone(object):
def __init__(self, model, partNumber, retailPrice):
self.model = model
self.part_number = partNumber
self.retail_price = retailPrice
def phone_specs(self):
print( "Phone model: {}\nPart number: {}\nRetail price: {}".format( self.model, self.part_number, self.retail_price))
phone1 = Phone("Nokia", "asd234", 200.0)
phone1.phone_specs()
Explanation:
A class is a blueprint of a data structure used to create objects of the same data types and methods. The Phone class is an object that creates an instance of the phone1 object. The phone_specs method is used to display the details of the phone1 object.
Explanation:
10:A program that assigns the sum 20,30,40
20: input 20,30,40
30:sum input
40: print total
End
Answer:
bhai sahab kya question hai mujhe samajh mein hi nahin per Sara sale Kya Re Tu Hi Sab Kuchh Nahin