I had several problems knowing in which options I run a function, and I want to implement somehow that this functions prints its owns arguments. I found this question related, but I tried and didn't succeed. The code I tried:
def SharedData(list1, list2, list3, list4, list5, remove=False):
"""Do some magic"""
sets=list1[:]
#Magic happens
print len(sets) / float(len(list1)) * 100, "% of genes start are equal between the predictors from", *list1
With this code I wanted to print the name of the first argument. So in the command line I know how I applied this function.
I wanted to read at the terminal prompt something like that after running this function SharedData(glimmer, easygene, genemark, augustus, prodigal)
:
30,000000 % of genes start are equal between the predictors from glimmer
How can I achieve that?