I have a program in python 2.7 which accepts command line parameters using argparse, however if I try to enter a string containing an ampersand I lose the chara
argparse
This is a problem with your shell. Put the argument in quotes.