blockpy-edu / blockpy

Blockly that's more Python than JavaScript, powered with Skulpt
Apache License 2.0
391 stars 130 forks source link

Why can't I assign a variable more than once before using it? #28

Closed yisiliu closed 6 years ago

yisiliu commented 6 years ago

I don't really get the logic behind this error: "One of the times that you gave a a value was incorrect."

acbart commented 6 years ago

I'm afraid this Github is not meant for programming advice. If you have questions about specific programming questions you are working on, then you can post on a service like StackOverflow.

As to the design decision of why we consider that an error, it's because you should never redefine a variable before you use it.