Información

Autor(es) Tanguy De Bels
Fecha de entrega Sin fecha de envío
Tiempo límite de envío Sin límite de envío
Etiquetas de categoría session1

Inicia sesión

Session 1: Q* Somme

In programming, one of the first exercise asked for practice is to calculate the sum of the n first positive integers. It is to illustrate the capacity to repeat a process easily and with a few lines of computers.

To do so, use a for loop with a range.


Implementation
x = ... #the number
result = ... #store in this variable the sum of the x first positive integers