Answer to Question #280492 in Python for saivarun

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


1
Expert's answer
2021-12-17T06:57:14-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS