3 ms·
Don't save the file to turtle.py, because then the "import turtle" line might try to import itself. Call it turtlestuff.py. Then do this in terminal: python
by hackyhacky 7y ago
Don't save the file to turtle.py, because then the "import turtle" line might try to import itself. Call it turtlestuff.py. Then do this in terminal:
python -i turtlestuff.py
Then you'll get an interactive Python prompt and you can call the functions directoy, e.g.
spirals()
Hope this helps you!
- SamBam 7y agoAh, thank you.
- DonHopkins 7y ago>because then the "import turtle" line might try to import itself Then you get turtles all the way down!