Question #280492

print single digit...

1) input ..2 2 1

1) output... 1

2) input ...8 9 6 8 9 6 5

2) output...5


Expert's answer

def print_num(list1):
    return list1[-1]
print_num([1,1,2])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS