slabbe@labbe-laptop ~ $ ipython La commande « ipython » n'a pas été trouvée, voulez-vous dire : commande « bpython » du deb bpython (0.18-3) commande « ipython3 » du deb ipython3 (7.13.0-1) Essayez : sudo apt install slabbe@labbe-laptop ~ $ sage -ipython Python 3.8.5 (default, Jul 28 2020, 12:59:40) Type 'copyright', 'credits' or 'license' for more information IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: In [1]: In [1]: for i in range(10): ...: print(i) ...: 0 1 2 3 4 5 6 7 8 9 In [2]: s = 'abc' In [3]: In [3]: help(s) In [4]: In [4]: In [4]: s.capitalize() Out[4]: 'Abc' In [5]: In [5]: s.upper() Out[5]: 'ABC' In [6]: In [6]: s.format_map? Docstring: S.format_map(mapping) -> str Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces ('{' and '}'). Type: builtin_function_or_method In [7]: In [7]: In [7]: s.upper? Signature: s.upper() Docstring: Return a copy of the string converted to uppercase. Type: builtin_function_or_method In [8]: In [8]: s.__add__? Signature: s.__add__(value, /) Call signature: s.__add__(*args, **kwargs) Type: method-wrapper String form: Docstring: Return self+value. In [9]: L = [2,3,4] In [10]: In [10]: s.capitalize() Out[10]: 'Abc' In [11]: In [11]: Do you really want to exit ([y]/n)? slabbe@labbe-laptop ~ $ slabbe@labbe-laptop ~ $ slabbe@labbe-laptop ~ $ cd Documents/Cours/2021-cours-python-edmi/ slabbe@labbe-laptop 2021-cours-python-edmi $ cd Exercices/ slabbe@labbe-laptop Exercices $ ls 2021-02-25-exercices-programmation-python.ipynb solutions.txt slabbe@labbe-laptop Exercices $ slabbe@labbe-laptop Exercices $ slabbe@labbe-laptop Exercices $ slabbe@labbe-laptop Exercices $ sage -n jupyter