Here is the code in my test.py file.
print ('The 2nd arg is: \'', sys.argv[1], '\'.')
Each time I run this command
python test.py hello
I get this
The 2nd arg is: ' hello '.
There are whitespaces before and after the string. How do I get rid of them?
I've tried strip()
which doesn't work.