mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +01:00
13 lines
282 B
Text
13 lines
282 B
Text
import banana
|
|
|
|
|
|
class Monkey:
|
|
# Bananas the monkey can eat.
|
|
capacity = 10
|
|
def eat(self, n):
|
|
"""Make the monkey eat n bananas!"""
|
|
self.capacity -= n * banana.size
|
|
|
|
def feeding_frenzy(self):
|
|
self.eat(9.25)
|
|
return "Yum yum"
|