1#Use the class function and give the class a name
2#next use the def __init__() to initilaize and give it some properties.
3class Fruits():
4 def __init__(self, name, colour, taste):
5 self.name = name
6 self.colour = colour
7 self.taste = taste
8#Now create an object by first calling the class
9fruit1 = Fruits(apple, red, sweet)
10print(fruit1.name)
11#this will print the name which is apple
12print(fruit1.colour)
13#this will print the colour which is red
14print(fruit1.taste)
15#this will print the taste which is sweet