Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
get range of items of python list
the dark wanderer
Programming language:
Python
2021-03-01 13:23:53
0
Q:
get range of items of python list
ashen
Code:
Python
2021-03-01 13:31:04
names = ['Alice', 'Bob', 'Tom', 'Grace'] names[1:3] # Output: # ['Bob', 'Tom']
1
Tags
python
get
list
Related
python range
python list index out of range
python check if number is in range
range(n,n) python
python range function
class range python code
how to find the amount of numbers in a list on python
python range of array
in range python
how do you use the range function in python
random range python
the list of prime number in a given range python
range parameters python
python 3 numbers of a range is even
python create list from range
create a list using range python
python get all ips in a range
python in range
New to Communities?
Join the community