bonjour j'ai un devoir maison a faire pour la rentré en mathématique j'espère que vous pourrais m'aider. la consigne es: Écrire un algorithme ou un programme af
Mathématiques
linareunion
Question
bonjour j'ai un devoir maison a faire pour la rentré en mathématique j'espère que vous pourrais m'aider.
la consigne es: Écrire un algorithme ou un programme affichant 1 000 fois le mot "mathématique".
MERCI POUR SE QUI POURRA M'AIDER
bonne journée
la consigne es: Écrire un algorithme ou un programme affichant 1 000 fois le mot "mathématique".
MERCI POUR SE QUI POURRA M'AIDER
bonne journée
1 Réponse
-
1. Réponse Zazia
Réponse:
Essaye ça
Explications étape par étape:
NBMaths = 1000
MOT = 'Mathematiques"
for I in range (NBMaths) :
print MOT
Ça a été fait sous Python 2.7 sous Python 3, il faudra juste changer la dernière ligne et écrire :
print (MOT, end="")