Informatique

Question

Salut qui pourrait m’envoyer les mots de bases pour passer d’un algorithme à un programme python
Merci

1 Réponse

  • Bonjour,

    Afficher "texte ou variable" <=> print("texte ou variable")

    Entrer "a =" <=> a = input("a =") #avec int(), float() si besoin.

    Pour i de a à b <=> for i in range(a, b+1):

    Tant que (condition) <=> while (condition):

    Si (condition) alors

      ...

    Sinon:

      ...

    Fsi;

    <=>

    if (condition):

      ...

    else:

      ...

    fonction nom_fonction(arg1, arg2, ...)

      ...

    <=>

    def nom_fonction(arg1, arg2, ...):

      ...

    Bonne journée.

Autres questions