Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- liste = []
- begin = 0
- moyenne= 0
- for i in range(len(daytime['Sleep'])):
- if daytime["hours"][i]>9 and daytime["hours"][i]<10 and daytime["Sleep"] [i] != 0:
- begin += daytime["Sleep"][i]
- moyenne=begin/len(liste)
- if daytime["Sleep"] [i] == 0: #ignores zero values (eg twitch)
- continue
- liste.append(begin)
- print(begin/len(liste))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement