I am trying below commands
python -c 'import sample; sample.Functionname()'
python -c 'import sample; sample.printFxn("helloWorld")'
Both of these work well but when I pass a variable as an argument, I get the following error.
File "<string>", line 1 import sample; sample.printFxn($filename) SyntaxError: invalid syntax
What is the proper way to pass a variable as an argument to a python function from bash?