fork download
  1. # your code goes here
  2. a =list()
  3.  
  4. for i in range (9):
  5. x = [int(input())]
  6. a.append(x)
  7. print(a)
  8. j = 0
  9. while a[j] != max(a):
  10. j = j + 1
  11.  
  12. print(max(a), j+1, sep= '\n')
Success #stdin #stdout 0.03s 9760KB
stdin
3
29
38
12
57
74
40
85
61
stdout
[[3], [29], [38], [12], [57], [74], [40], [85], [61]]
[85]
8