83.9k views
0 votes
Write a Python class, Flower, that has three instance variables of type str, int, and float, that respectively represent the name of the flower, its number of petals, and its price. Your class must include a constructor method that initializes each variable to an appropriate value, and your class should include methods for setting the value of each type, and retrieving the value of each type.

1 Answer

1 vote

Answer:

The python class is shown on the first uploaded image

Step-by-step explanation:

Write a Python class, Flower, that has three instance variables of type str, int, and-example-1
User Egos Zhang
by
6.8k points