Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5310

Beginners • Re: Online Editor

$
0
0
As a beginner, trying to learn Python for use on a Pi, earlier today I found on your website a Python Online Editor; wrote a program (copied from a book of Pi projects).
Start of which was :-

#importing necessary libraries
from gpiozero import LED
from time import sleep

etc

When I ran the program, it gives error message that it cannot find libraries. If this is for a Pi why is the library not available, or how do I find and import any available library?

I now have another issue - I now can't find the online editor! (find the website a bit confusing) So how do I re-find it please?

Not currently in a position to try it direct on my Pi, so would like to develop any program on the Mac and eventually download/copy to the Pi.

To add to your confusion, that Python online editor was probably NOT on this (Raspberry Pi Ltd) website, but more likely on the similarly named Raspberry Pi Foundation website.

And if that is the case then the teaching materials will probably be 'technology-neutral' so your assumption that the virtual Python system underlying the editor is a Raspberry Pi is probably not justified.

Possibly your starting point may have been - https://projects.raspberrypi.org/en/pat ... thon-intro

Statistics: Posted by B.Goode — Fri Aug 09, 2024 2:43 pm



Viewing all articles
Browse latest Browse all 5310

Trending Articles