DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
sum range
>>> sum(range(4)) # 0 + 1 + 2 + 3 6
Source by docs.python.org #
PREVIOUS
NEXT
Tagged:
#sum
#range
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit