Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1001999 // bot.py - bot example in Python

Document

# deh function!

def answer(s):
  return "OMG USER! I can't believe you just said: " + s

# deh test program! oh, python is so nice and short.
  
s = "hello computer!"
print(s)
print("> " + answer(s))

Author comment

Runs with Python 2 and Python 3.

download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001999
Snippet name: bot.py - bot example in Python
Eternal ID of this version: #1001999/1
Text MD5: 6b0977c791a64ff760ba657539e80156
Author: stefan
Category: python to javax
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-11 20:27:33
Source code size: 209 bytes / 10 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 563 / 527
Referenced in: [show references]