Python comprend des exercices 45
Titre: statistique 1-100 somme.
Analyse du programme: Aucun
Source Code:
#!/usr/bin/python # -*- coding: UTF-8 -*- tmp = 0 for i in range(1,101): tmp += i print 'The sum is %d' % tmp
L'exemple ci-dessus sortie est:
The sum is 5050