This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import csv, json, sys, random, argparse | |
| def monitor_port(): | |
| """ | |
| Monitor the topic from the IPC | |
| @return String containing JSON msg. | |
| """ | |
| # TODO: Add IPC functionality | |
| # TEST DATA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| s = raw_input('Enter something: ') | |
| print s[::-1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def name_length(name): | |
| print 'Hello, %s, did you know you have %d letters in your name?' %(name, len(name)) | |
| name_length(raw_input('Whats your name?:')) |