Python inclui exercícios 45
Título: 1-100 soma de Estatística.
Análise do Programa: Nenhum
Source Code:
#!/usr/bin/python # -*- coding: UTF-8 -*- tmp = 0 for i in range(1,101): tmp += i print 'The sum is %d' % tmp
O exemplo acima saída é:
The sum is 5050