Ch 14 Python

14.2 Utilisation

To call a function or a variable of this module, it is necessary that the msg.py either in the current directory (where you work) or in a directory specified by the environment variable PYTHON PATH Unix. Then just import the module and all its functions (and variables) you are then accessible. The first time a […]

Ch 14 Python

14.1 Creation

You can create yours own modules easily in Python. Simply write a set of functions (and / or variables) in a file, then save it with a. Py (like any Python script). For example, here is the content of  msg.py module. “”” Useless module that displays messages 🙂 🙂 “”” def Hello(name): “”” Displays Hello! “”” […]