copy & paste code | EdPy Programming | Forum

Please consider registering

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

copy & paste code
November 18, 2017
10:09 am
New Member
Forum Posts: 1
Member Since:
November 18, 2017
sp_UserOfflineSmall Offline

Hi Edison

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.

your thoughts???

November 20, 2017
10:47 am
Forum Posts: 180
Member Since:
August 24, 2015
sp_UserOfflineSmall Offline

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
1:35 pm
Forum Posts: 5
Member Since:
December 12, 2017
sp_UserOfflineSmall Offline

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.

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead


Pin It on Pinterest

Share This