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.
Answer:
oh sorry i needed points but i have a friend whos user starts with dida
Explanation:
Answer:
the answer is a, b,d on edg.
Explanation:
Firewall
Dont forget to thanks and give brianliest.
Answer:
mylist = [ ]
for i in range(7):
mylist.append (int(input("Enter the number of bugs for each day ")))
print(mylist)
print("The highest number of bugs is ")
print(max((mylist)))
Explanation:
- Create and Initialize an empty (mylist)
- Using the .append method, we request and add the bugs for each day into the list
- print out the list
- Use the max function to find the highest number of bugs in the list and print it out