Hiding Functions
Barnesr (0)

I want my students to use this repl to play with the functions to draw different images.
When I have done this in python or trinket.io I have placed all of the functions in a separate file and imported them so that pupils are not distracted by the code for the functions.
Example:
https://trinket.io/python/1d4b01c741

Is there a way to hide them in REPL (lines 9 to 61). When using turtle there does not seem to be the option for multiple files and opening a repl seems to default to expanding all code.

You are viewing a single comment. View All
ash15khng (455)

@Barnesr In Python with turtle I don't think imports really work, and I don't think there's a way to import from repl.