Yesterday my son came home from school and told me that he has to learn programming with Python. “We downloaded an app where learning is easy – you can start out of the box”, he said. That made me curious and I asked him to show what he had done so far.
They downloaded TigerJython (http://jython.tobiaskohn.ch/index.html), which uses Jython 2.7.0 under the hood. The exercises he made were steering a turtle to draw lines. Pretty cool for beginners!
I offered him to help if he should be stuck. He had 2 questions:
- can I define a function with more than one argument?
- can I share functions between two .py files?
So we wrote the first module to import from. This worked well, and you got here a somewhat proud father that helped build something his son can use today…