INTRODUCTION
Python is a language oriented to objects, the main philosophy of python is to do a readable code. Hence, is very important the spaces(indentation).
REQUIREMENTS TO RUN
To download:
https://www.python.org/downloads/
Choose the installer for your OS and install.(remember install with option PATH to use python anywhere)
HELLO WORLD
IN TERMINAL
- Open your terminal and write: python
- after write: print "Hello World"
IN FILE
Here we going to use class and methods to say "hello world", I did that for understand generally how to use python.
We create a file named hi.py
Inside we put this code:
after in the terminal we go to the file and execute the file with the python command:
All the description of the code is as a comment in the image. As you can see this tutorial is only to say "hello world" with python and no more.
Thanks!!



No hay comentarios:
Publicar un comentario