Advertisement
daniil-vlasenko

13.10.16

Sep 17th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. from random import randrange as rnd
  2. a = []
  3. for p in range(10):
  4. a.append(rnd(10))
  5. print(a)
  6. p = None
  7. for i in range(len(a)):
  8. if p is None or a[i] > p:
  9. p = a[i]
  10. p = p
  11. for i in range(len(a)):
  12. if a[i] == p:
  13. print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement