Fonction RANGE et PRINT
bonjour à tous.
Serait il possible de savoir pourquoi ces lignes de programmation ne fonctionnent pas svp, que cela soit avec Python 3.8.10 ou Python 3.9-5 ?
>>> print range (5)
SyntaxError: invalid syntax
>>> print 'texte'
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('texte')?
en vous remerciant par avance
bonne journée
Serait il possible de savoir pourquoi ces lignes de programmation ne fonctionnent pas svp, que cela soit avec Python 3.8.10 ou Python 3.9-5 ?
>>> print range (5)
SyntaxError: invalid syntax
>>> print 'texte'
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('texte')?
en vous remerciant par avance
bonne journée