Introduction à Python

Revision sheet excerpt

Plan du Cours

  1. Exécution et environnements Python
  2. Nombres et opérateurs
  3. Modules et documentation
  4. Conversions et fractions
  5. Chaînes et slicing
  6. Listes et opérations
  7. Tuples et dictionnaires
  8. Conditions et boucles
  9. Fonctions et algorithmes
  10. Classes, exceptions et fichiers

1. Exécution et environnements Python

Notions clés & Définitions

  • IPython : Un shell interactif plus avancé que l’interpréteur Python, avec notamment l’historique des commandes, l’auto-complétion par Tab, l’édition en ligne, l’accès à la documentation et le débogage.

Points essentiels

★ À maîtriser

  • Un fichier Python se termine par l’extension « .py » et peut être lancé avec la commande « python mon_programme.py ».

Compléments

📌 Les lignes d’un fichier Python sont exécutées sauf celles qui commencent par le caractère « # », qui sont des commentaires.

  • Un notebook IPython est un environnement accessible dans une page web et ses fichiers sont enregistrés avec l’extension « .ipynb ».

Astuce mémo

Script → interpréteur → IPython

2. Nombres et opérateurs

Points essentiels

Read the full sheet →

Quiz preview

1. Quel est l’extension de fichier typique d’un programme Python exécutable directement depuis l’interpréteur ?

2. En quoi IPython se distingue-t-il de l’interpréteur Python standard ?

3. Quel type Python correspond à l’expression 3.0 ?

Take the quiz (30 questions) →

Flashcards preview

Quelle extension a un fichier Python ?

L'extension .py.

Comment lance-t-on un fichier Python nommé mon_programme.py ?

Avec la commande python mon_programme.py.

Qu'impose la présence du caractère # en début de ligne dans un fichier Python ?

La ligne est un commentaire non exécuté.

Qu'est-ce qu'IPython ?

Un shell interactif plus avancé que l'interpréteur Python.

Citez une fonctionnalité d'IPython absente de l'interpréteur Python classique.

L'auto-complétion par la touche Tab.

Qu'est-ce qu'un notebook IPython ?

Un environnement accessible dans une page web.

See all 72 flashcards →

Frequently asked questions

What does the revision sheet on Introduction à Python cover?

The revision sheet covers the essential concepts of Introduction à Python. It is organized by topic to facilitate learning and memorization, with key definitions, explanations and summaries.

Read the full sheet →

How many questions are in the Introduction à Python quiz?

The quiz contains 30 multiple-choice questions with detailed corrections and explanations for each answer. Ideal for testing your knowledge and identifying gaps.

Take the quiz (30 questions) →

How to study Introduction à Python with flashcards?

Revizly offers 72 interactive flashcards on Introduction à Python. Each card presents a question on the front and the answer on the back, enabling active and effective revision based on spaced repetition.

See all 72 flashcards →

Similar courses

Create your own sheets from your courses

Import your PDF or paste your course, AI generates sheets, quizzes and flashcards in 30 seconds.