I believe teaching object-orientated programming early on in Python (and Java) is workable and preferable. Creating class, functions/methods and instances/objects of classes to call methods from other classes should be taught early on. Below, two python files are placed in the same folder/directory, Tester.py and OtherClass.py.
The compilation and execution of the Tester file will result in the words 'call' and 'write' within the console and a simple window pop up.
No comments:
Post a Comment