The last number

Report a typo

Given a tuple consisting of numbers, print its last element.

Tip: When the length of the tuple is unknown, you can use negative indexes or the len() function.

Sample Input 1:

24 22 42

Sample Output 1:

42
Write a program in Python 3
# use this tuple
numbers = tuple(int(n) for n in input().split())
___

Create a free account to access the full topic