Introduction à Python
Python est un language de programmation initialement prévu pour faire du scripting.
Installation
Sur le site officiel, téléchargez la dernière version : https://www.python.org/downloads/
Prise en main
L'interpreteur
Python dispose d'un interpreteur qui vous permettra de jouer un peu avec sa synthaxe. Pour l'utiliser, ouvrez un terminal (cmd, powershell, etc...) puis taper la commande :
python

L'interpréteur va alors intérpréter chauqe ligne à la volée.

Executer un script Python
Dans un dossier, créer un fichier "hello.py" (ATTENTION: l'extension .py est importante ici)
Pour executez ce fichier, ouvrez un terminal pointant dans le dossier du fichier et taper la commande :
py hello.py
Last updated
Was this helpful?