Hi, I have keep encounter the below error starting from Exercise 4.3 to Exercise 5 saying “UnboundLocalError: local variable ‘p_1’ referenced before assignment”, however the result is same as the “expected answer”. Anyone can explain to me that why it happened?
haha, i know what i have done wrongly. I forgot to initialise “p1” in the first place
1 Like