DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python loop
#loop
a
=
[
1
,
2
,
3
,
4
,
5
,
6
]
sum
=
0
for
val
in
a
:
sum
=
sum
+
val
print
(
"the sum is"
,
sum
)
Source by localhost #
PREVIOUS
NEXT
Tagged:
#python
#loop
ADD COMMENT
Topic
COMMENT
Name
9+5 =
Submit