November 18, 2017
My students encountered an interesting things when coding in EdPy.
A student had created an if statement & actions, copied it, pasted it below, changed to elif & changed the conditional.
When they checked the code, they kept getting syntax error on the elif.
Code was character for character correct.
What we tried, just to see, was backspaced each line up to the next line and hit return.
No errors were found this time.
It seems like copy & paste is creating a spacing issue, since if-elif-else need to be lined up.
August 24, 2015
Python and EdPy are very very specific with how they deal with whitespace (spaces, tabs, line returns, e.c.t.)
Its possible your machine or browser is changing this whitespace during the copy/paste
December 12, 2017
My students have the exact same problem. I’ve just taught them to check the spacing issue by deleting to the beginning of the line and then adding the tabs back (looking for the little faded line that appears) as a visual guide. But we all agree that it’s a bit frustrating, especially when the students are working in teams and need to share code back and forth with each other.