RosettaCodeData/Task/Use-another-language-to-call-a-function/Python/use-another-language-to-call-a-function-1.py

7 lines
185 B
Python
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
# store this in file rc_embed.py
# store this in file rc_embed.py
def query(buffer_length):
message = b'Here am I'
L = len(message)
return message[0:L*(L <= buffer_length)]