jweinst1
11/18/2015 - 1:01 AM

How to feed arguments into the commandline in python

How to feed arguments into the commandline in python

import sys

def addfoo(string):
    string += "foo"
    return string

y = sys.argv[1]
y = addfoo(y)

print(y)