Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def max_number(x):
- max_num = 0
- max_index = 0
- for index in range(len(x)):
- if x[index] > max_num:
- max_num = x
- max_index = index
- return max_num, max_index
- num_list = list(map(int, input().split()))
- print(max_number(num_list))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement