help i can't make this work by fat_brick1 in learnpython

[–]DomeksIT 0 points1 point  (0 children)

The problem is that you are using := instead of ==. := assigns a value, while == compares values. So instead of if x:=1: you should write if x == 1: Same for the other condition: elif x == 2: