This online scheme uses embedded Trinkets to present a simplistic IDE for students to write their code. Using an online editor means this scheme will work on any device including Chromebook and iPad. However, it also means that the source code students write will NOT be saved from session to session. To save their work, students will need to either:
Take a copy of the Trinket share link and return to the saved page in the future.
To do this in Trinket select: Share... Link... Copy the URL shown.
Students can also share their work with their teacher by sharing the Trinket URL. Each time a change is made to the code a new URL is created. The URL generated is just a hash of the source code.
Or...
Copy their work out of the Trinket, for example into Notepad, save this file and copy it back into Trinket to continue.
To do this in Trinket select: Share... Download.
If students have a Trinket account, they can save the Trinkets to their own Trinket storage.
Another approach is to use an offline IDE. Students can copy the boilerplate from the Trinket into a local IDE such as IDLE, Thonny or PyCharm.