DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
for loop only for first 10 python
>>> l = [1, 2, 3, 4, 5] >>> n = 3 >>> l[:n] [1, 2, 3]
PREVIOUS
NEXT
Tagged:
#loop
#python
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit