SHARE
TWEET

Untitled

karolinagergert Jul 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import randint
  2. n=[randint(0,9) for i in range(0,7)]
  3. print(','.join(map(str,n)))
  4. L=len(n)
  5. for i in range(L-1):
  6.     for j in range(L-i-1):
  7.         if n[j+1]<n[j]:
  8.             n[j], n[j+1]=n[j+1], n[j]
  9. print(min(n))
  10. count=1
  11. while min(n)==n[i+1]:
  12.     count+=1
  13. else:
  14.     print(count)
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