Tell HN: My child's first program
417 pointsLast night, I introduced my kid to programming. We'd done some stuff with Mindstorms before, but she never really caught the bug for it. But for some reason, last night when I showed her some simple Python scripting to solve math problems and write to the console, she was enthralled.
After guiding her through a few things, she took the laptop off for a while and then came back with her first program, giggling like a maniac
you='WOW!!!'
fart='So many poops!'
print(you,fart)
I'm pretty proud :D
Comments (136) 58 threads
Earlier commentsCommand not found.
I was disappointed, thinking that would be the end of it, but his whole class has been trying to find ways around the blocks and filters ever since. They've found some clever workarounds and a lot of things that sort of look like hacks but are not. It's adorable.
[1] https://www.dslreports.com/faq/3880
- Reformat with `black`; needs space around "="
- Change constants to uppercase, so YOU and FART
- Probably best to use an f-string, e.g. f"{YOU}{FART}"
- Needs tests
Otherwise LGTM
Congrats! What a fun and delightful thing. Props to you, and here's to many more enjoyable programs. Thanks for bringing a little humor to my day.
All comments shown.
Couldn't load more comments. Check your connection and try again.