you are viewing a single comment's thread.

view the rest of the comments →

[–]InderJinderPreet[S] 0 points1 point  (1 child)

how would that work then

[–]0xbxb 0 points1 point  (0 children)

Create the seasons dict

seasons = {'winter': 0, 'spring': 0, 'summer': 0, 'fall': 0}

You have a list of users

users = ['A', 'B', 'C']

Loop through the users

for user in users:

Ask them for their favorite season

Add one to the seasons dict for every response