Hope you are doing well


Kindly check below code to achieve the same:


def func(mylist):
print mylist
return

mylist = [10]
mylist_1 = ['a']
mylist_2 = [123]

func(mylist)
func(mylist_1)
func(mylist_2)





Hope this resolves your query

In case of any further issue,feel free to revert.

Kindly give your valuable feedback by clicking on any one of the smiley's below.


Please note if you are not happy with the response on this ticket, please escalate it to escalations@edureka.in.

We assure you that we will get back to you within 24 hours

 





Regards

Sumit Anand

edureka! Solution Team

Website - www.edureka.co

Edureka claims 1st position at Deloitte's Technology Fast 50 India 2014