Ask coding questions

← Back to all posts
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 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.

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.

ash15khng (684)

I don't think you can on a Python with Turtle repl sadly.

Barnesr (0)

@ash15khng Thanks. Can you import functions from another repl?

ash15khng (684)

@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.