Problem scenario
You are trying to print a variable, but it prints out like this:
Namespace(string=[‘foobar’])
How do you print out just “foobar” with no quotes?
Solution
Overview
The key word here is “string”. The “string” text in this is the attribute you will want.
Background
Your program may have something like this:
args = parser.parse.args() # Assuming this is the variable assignment of “foobar”
print (args)
Procedures
1.
…