Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. def max_number(x):
  2.     max_num = 0
  3.     max_index = 0
  4.     for index in range(len(x)):
  5.         if x[index] > max_num:
  6.             max_num = x
  7.             max_index = index
  8.     return max_num, max_index
  9.  
  10.  
  11. num_list = list(map(int, input().split()))
  12. print(max_number(num_list))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement