mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-23 00:22:56 +01:00
12 lines
No EOL
247 B
Text
12 lines
No EOL
247 B
Text
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" |