SHARE
TWEET

13.10.16

daniil-vlasenko Sep 17th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top