3 ms·
It's a great question. I couldn't learn the basics twice, so what I always tried to do was have something new that I would learn with the students. So for one c
by smtibor 5y ago
It's a great question. I couldn't learn the basics twice, so what I always tried to do was have something new that I would learn with the students. So for one cohort, I'd learn about Turtle. The next, I'd learn about PyGame Zero. Or we would do new things with CircuitPython boards.
The best moments are when students learn something new and blow my mind. I had one student figure out how to make a really elegant Python for loop that would create a full rainbow of RGB colors using the colorsys library.
I had been writing this in 5-6 lines of code. She did it in two (plus the library import)
for i in range(255):
color = colorsys.hsv_to_rgb(i/255, 1.0, 1.0)
Not bad for a 6th grader!
- erwincoumans 5y agoYou could play with our PyBullet library, for simple robotics and physics sim/game experiments. It has docs and examples, single line install, and works in a colab: pip install pybullet https://pybullet.org/wordpress/index.php/2021/04/15/pybullet-in-a-colab/ https://pybullet.org/wordpress/index.php/2021/04/15/pybullet... https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit#heading=h.2ye70wns7io3 https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N... Maybe fun to create some exercise with it.