Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
intervalos
#python 3.5.2 lista =[3, 6, 8, 5, 7, 12, 9, 7, 6, 4, 8, 10, 11, 9, 4, 5] n = 20 tramo = float(max(lista)-min(lista))/n tramanter =0 for x in range(1, n+1): nelem = 0 for valor in lista: if valor<=(min(lista)+x*tramo): nelem = nelem + 1 frecuencia=(nelem-tramanter)/len(lista) frecacum = nelem/len(lista) intervalo = (min(lista)+x*tramo) print('%.3f' %intervalo, '\t', '%.4f' %frecuencia, '\t', '%.4f' %frecacum) tramanter=nelem
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
https://rextester.com/OSAX55060
set, tuple, and dict
teste
sai hw user enter table
for
strong1
Game4
count(even/odd)fromlist.py
9th jan1
Lesson 3 HW-Final
Please log in to post a comment.