Advertisement
biswasrohit20

w

Jun 20th, 2021
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. liste = []
  2. begin = 0
  3. moyenne= 0
  4. for i in range(len(daytime['Sleep'])):
  5. if daytime["hours"][i]>9 and daytime["hours"][i]<10 and daytime["Sleep"] [i] != 0:
  6. begin += daytime["Sleep"][i]
  7. moyenne=begin/len(liste)
  8. if daytime["Sleep"] [i] == 0: #ignores zero values (eg twitch)
  9. continue
  10. liste.append(begin)
  11.  
  12. print(begin/len(liste))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement