12 lines
247 B
Plaintext
12 lines
247 B
Plaintext
|
from banana import *
|
||
|
|
||
|
class Monkey:
|
||
|
# Bananas the monkey can eat.
|
||
|
capacity = 10
|
||
|
def eat(self, N):
|
||
|
'''Make the monkey eat N bananas!'''
|
||
|
capacity = capacity - N*banana.size
|
||
|
|
||
|
def feeding_frenzy(self):
|
||
|
eat(9.25)
|
||
|
return "Yum yum"
|