Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def noFreq():
- count = 0
- freq = scores[0]
- for i in scores:
- values = scores.count(i)
- if values>count:
- count = values
- freq = i
- return freq,count
- scores = []
- for i in range(18):
- value = random.randint(0,100)
- scores.append(value)
- print(scores)
- print ("max value",max(scores))
- print ("min value",min(scores))
- print("most common, no of appearances",noFreq())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement