Karrigell/Write the "Hello world" script

Create a new directory. Save this script in a file called "index.py":

Create another script called server.py:

Save server.py in the same folder as index.py, then run it :. This will launch the built-in web server.

Finally, in a web browser enter the address h&#116;tp://localhost/index.py/index . Congratulations, you just ran your first Karrigell script ! The address index.py/index requested to run the function  in the script index.py. The value returned by this function is printed in the web browser.

In fact, you could have written the url h&#116;tp://localhost/index.py : if no function name is specified, the function index is run by default, with no argument.

And you could even have called h&#116;tp://localhost : if no script is specified, the server searches a script called index.py and if it finds one, it executes its function index.