+ 1

Hello. How can I write a program in python to print a sum of a range of number like from 1 to 10 please?

16th Dec 2020, 2:30 PM
Mas'ud Saleh
Mas'ud Saleh - avatar
2 odpowiedzi
+ 6
Try this: print(sum(list(range(11)))) Hope it helps.
16th Dec 2020, 2:36 PM
Calvin Thomas
Calvin Thomas - avatar