Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. for day in participationDate: # Collating participant's condition on each day
  2. conditionByDay = [0, 0, 0]
  3. if 'luck' in allLines[0]:
  4. conditionByDay[0] += 1
  5. elif 'mixed' in allLines[0]:
  6. conditionByDay[1] += 1
  7. elif 'skill' in allLines[0]:
  8. conditionByDay[2] += 1
  9. if day in participationDate:
  10. if 'luck' in allLines[0]:
  11. conditionByDay[0] += 1
  12. elif 'mixed' in allLines[0]:
  13. conditionByDay[1] += 1
  14. elif 'skill' in allLines[0]:
  15. conditionByDay[2] += 1
  16. participationDate[day] = conditionByDay
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement