1 | # deh function! |
2 | |
3 | def answer(s): |
4 | return "OMG USER! I can't believe you just said: " + s |
5 | |
6 | # deh test program! oh, python is so nice and short. |
7 | |
8 | s = "hello computer!" |
9 | print(s) |
10 | print("> " + answer(s)) |
Runs with Python 2 and Python 3.
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: | 638 / 552 |
Referenced in: | [show references] |