im tring to build max function i got bugs but i dont know where they are:
def max(*items):
# make sure it not empty
if items == ():
return "EmptyTuple"
# set the first item as highest one
HIGH = items[0]
for i in items:
# Check if the current item is a list
if isinstance(i, list):
i = max(tuple(i))
# Compare the current item with the current highest item
if i > HIGH:
HIGH = i
return HIGH
result = max([5, 11, 6], 1, 5)
print("the highest item is {}".format(result))