Starting on Python
I started messing with Python after seeing a colleague automatize half of his work in networking with Python coding, still learning though but seems promising.
Download Python
Go to Python.org and from there, downloads, select your operative system (windows, mac or Other) and download the installer that most suits your needs. I am going for the windows x86-64 executable installer.
Once that file is downloaded, open it and the installer will ask usual options, I strongly recommend to add python to the windows PATH enviroment variables. (If you are asking what the duck is that, take a look here)
Start coding
Head yourself to open your Python console, in windows, start menu and search for Python. The following was my first approach following the Python documentation.
>>> the_world_is_flat = True
>>> if the_world_is_flat:
... print("Be careful")
...
Be careful
As a quick explanation, we set a variable the_world_is_flat and tell the program later to type Be careful with a condition, if that variable exists. The result is the last, fifth line.
No hay comentarios:
Publicar un comentario