food.fruit.Banana

class food.fruit.Banana(name='Banana', color='yellow')

A class representing a banana fruit.

__init__(name='Banana', color='yellow')

Initialize a Banana instance.

Parameters:
  • name (str) – The name of the banana variety. Default is “Banana”.

  • color (str) – The color of the banana. Default is “yellow”.

Methods

__init__([name, color])

Initialize a Banana instance.

describe()

Return a description of the fruit.

make_smoothie([size])

Make a banana smoothie of a given size.