Below is the function example.
def testfun(self,total, count, fruitname):
self.totalvalue = total + count
print "fruitname"
self.testfun(10,5,"apple")
output:
apple
Now I i need to print extra fruit name using testfun
so when i call like this:
self.testfun(10,5,"apple","orange")
Expected out:
apple
orange
Is it possible achieve above output using same function "testfun" or I need to write two different functions.
Why i am asking is i have big function i need to call twice and for second time calling i need to print one extra input .
Any suggestions would be highly appreciated