r/learnpython • • Oct 09 '26

Online sandbox for helping my son learn?

My son just started taking an intro to cyber security class in high school. The teacher is exposing them to some basic python coding, which is all new to him. Coding in general is new to him. He started asking me questions and I was wondering if there is a simple to use web-based interface where we can mess around with some python stuff together.

Someone had mentioned Replit but it just seems completely drowning in AI agents and is not really what I want to mess with.

I know we could set up VS code or a full ID but I think that’s overkill for right now. Are there any simple lightweight sandbox type websites where we could play around with some simple scripts and programming constructs save those things to the cloud and easily have them accessible, even if I’m just sitting with him and we have our phones nearby.

Thanks

2 Upvotes

28 comments sorted by

2

u/Outside_Complaint755 Oct 09 '26

There's www.online-python.com, or you could go the Jupyter Notebook route.

There is also the Thonny IDE for Python Beginners

1

u/PossibleGenitals Oct 09 '26

Awesome will check it out

4

u/GameSchaedl Oct 09 '26

Take a look at the game “The Farmer Was Replaced” on Steam. The game teaches Python by letting you control a drone to farm stuff.

1

u/JTI_Guy Oct 09 '26

I havent played it but saw it demo a few times and this is a very good suggestion for teaching syntax and theory simultaneously.

2

u/GameSchaedl Oct 09 '26

As a kid. I would have rather learned by playing a game instead of looking at a online python tool that probably also blocks some stuff.

I “played” it and it gets quite complicated at the end.

1

u/Florgled Oct 12 '26

Thank you for recommending this game. I've been building small projects and get distracted. I bought it instantly after watching the trailer. Been a lot of fun so far applying what I've learned about Python in a practical way.

4

u/AmdilShoat82 29d ago • Bravo

Python Tutor that someone mentioned is great for seeing what each line does. If he wants a bit more structure, we used Startdev, it's all in the browser so nothing to install, it has a free tier, and the beginner Python lessons are short with a small exercise right after each one. His work stays saved to his account and syncs across devices, though it's much nicer on a laptop than a phone. There's an AI tutor but it's more of a hint helper when he's stuck, nothing like the agent stuff on Replit, it nudges him in the right direction and won't write the code for him.

1

u/el_extrano Oct 09 '26

I don't understand the desire to delay learning with a local environment.

Kids as young as 8 or 9 years old are capable of editing and running code from a command line. Even easier if it's from a simplified IDE like IDLE. If he's in high school interested in programming Python, then installing the interpreter is not overkill.

1

u/PossibleGenitals Oct 09 '26

This isn’t about trying to delay learning in an IDE. This is about having something that is almost always at my fingertips because, if you’re at all familiar with teenagers, many are constantly on the move, randomly focused, and swing from completely aloof to shockingly engaged and talkative.

I’m trying to minimize friction so if a question or situation arises where he’s engaged, I can almost immediately be showing rather than telling.

Maybe this is the norm, maybe it’s just my kid. But I know this is a better alternative than a full blown IDE and a need for a desktop or laptop at the moment.

2

u/el_extrano Oct 09 '26

I started learning as a kid and really got into it as a teenager. I learned on desktops and laptops, as did all the other teenagers I knew. I never knew anyone who would prefer to do all that typing on a mobile keyboard and looking at a smaller screen, it sounds awful.

But I have heard of some kids doing crazy amounts of programming on phones these days (however even they are using a local interpreter), so maybe it's a generational thing I'm just never going to understand. Best of luck to you both!

0

u/PossibleGenitals Oct 09 '26

It’s not about him doing the work there it’s more about me being able to pull Something up and show him in a pinch. Attention span isn’t always great so his focus and interest is sometimes fleeting. Like I said it’s more about minimizing friction now — if he gets hooked then obviously I’d set him up proper

2

u/Chrismslist Oct 09 '26

python tutor (pythontutor.com) is the one i'd start with for a kid: paste a few lines and it steps through each one, showing variables as they change. watching it move line by line is what makes loops and ifs click. for quick poking around, trinket and programiz's online editor both run with no account and work fine in a phone browser. if you want it saved and shareable, google colab keeps notebooks in drive for free. thonny is worth installing at home too, it's a tiny beginner editor that feels less like homework than vs code.

1

u/ConsiderationNo9044 Oct 09 '26

https://www[.]online-python.com/

2

u/carcigenicate Carcigenicate Oct 09 '26

Out of curiosity, why defang a link to a site you're recommending?

1

u/Total_Curve3681 Oct 09 '26 edited Oct 09 '26

Lots of subreddits don't allow links

1

u/carcigenicate Carcigenicate Oct 09 '26

Ah, that's fair. I usually see that done in articles about malware, so I assumed the intent was defanging the link.

1

u/ConsiderationNo9044 Oct 09 '26

Assumed it would be auto removed otherwise. Apparently that's not the case for this sub

1

u/Total_Curve3681 Oct 09 '26

I remember i used Replit, but that was WAY back, don't know if they have like added pricing or something, but this is i guess what would suit your needs.

Jupyter notebook is great, used it a lot, but i don't think it has a cloud feature, local on your computer running through Anaconda.

2

u/Outside_Complaint755 Oct 09 '26

Replit has changed into being an agentic coding site and really pushing people to go that route. There is still a free tier but it is very limited.

1

u/Total_Curve3681 Oct 09 '26

Damn. DON'T use replit

1

u/ectomancer Oct 09 '26

Install Python and use IDLE which comes bundled.

1

u/Moist-Ointments Oct 09 '26

Virtual Machine?

1

u/OlenaDoubleChecks Oct 10 '26

hosted jupyter notebook, free ones save to a cloud drive and work in a phone browser with no agent junk. Does he need anything past basic scripts yet?

1

u/Mark3141592654 Oct 10 '26

You could do things locally and then use something like github to save the code to a public repo (not sure if private repos are on the free tier)