For example, here's a function that takes 5 arguments and reverses the order
def reverseList(a,b,c,d,e):
normalList = [a,b,c,d,e]
reverseList = reversed(normalList)
printedList = []
for eachit in reverseList:
printedList.append(eachit)
print "This is the list that was entered: %r" % (normalList)
print "This is the same list, but in reverse: %r" % (printedList)
I'm new to this, so I can't figure out how to enter a "custom" list, e.g. not limit how many numbers can be entered in the function.