[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I thought something like it but doesn't work... for n in range(1, 11): x = input("Insert a number: ") for y in range(x): sum = y print ("The sum is: ",y)

- Prev by Date:
**Loop with else clause** - Next by Date:
**The sum of ten numbers inserted from the user** - Previous by thread:
**python is going to die! =(** - Next by thread:
**The sum of ten numbers inserted from the user** - Index(es):