DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to use sum with range python
res = sum(x for x in range(100, 2001) if x % 3 == 0)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sum
#range
#python
ADD COMMENT
Topic
COMMENT
Name
6+5 =
Submit