command line input formatting python code example
Example 1: how to get command line arguments in python
#!/usr/bin/python
import sys
print 'Number of arguments:', len(sys.argv), 'arguments.'
print 'Argument List:', str(sys.argv)
Example 2: how to print the 3erd character of an input in python
exampleString = "This is an example sentence"
print(exampleString[2])