Skip to content

Instantly share code, notes, and snippets.

View MattCairns's full-sized avatar

Matthew Cairns MattCairns

View GitHub Profile
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
s = raw_input('Enter something: ')
print s[::-1]
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?:'))