Ask coding questions

← Back to all posts
Why does it say that P1 isn't defined?
Answered by ch1ck3n (1592) [earned 5 cycles]
View Answer
Comments
hotnewtop
ch1ck3n (1592)

Thats's because you defined it inside a function. so you should define P1 in the global scope, meaning outside of the function.