Today we went over for and while loops, lists, strings, indexing and slicing.Class slides (homework inside)Post your solutions in the comments if you canSee you next week!
LIST = [0,0,1] a = 0 if LIST[0] == 0: b = a + 1 else: print("HARD") if LIST[1] == 0: c = b + 1 else: print("HARD") if LIST[2] == 0: id = c + 1 else: print("HARD") if id == 3: print("EASY")
x = int(input('number of voters: '))
y = list(map(int, input('votes ').split(',')))
if sum(y)==0:
print('Easy')
else:
print('Hard')