Skip to content

Commit 0a2b3c6

Browse files
authored
pirate speech
1 parent b61c5de commit 0a2b3c6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

pirate_speech.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import requests
2+
3+
def take_input(text):
4+
normalized = str(text)
5+
obj = requests.get('http://isithackday.com/arrpi.php?text=' + normalized)
6+
if obj.text is not None:
7+
print obj.text
8+
else:
9+
print "Wrong input or something"
10+
11+
if __name__ == '__main__':
12+
take_input(raw_input())
13+
14+
15+

0 commit comments

Comments
 (0)