Python : How to print only nth row in print() result
just recently learning web scraping using python 3 and beautifulsoup. I have problem to print the only row i want.
Below i provide the code i use.
product_sizes = view_product.find('dl', id='dl_1')
for product_size in product_sizes.find_all('li'):
product_size = product_size.span.text
print(product_size)
Suppose when i print this, i got this kind of result
35
36
37
38
39
40
I want to let say print the 2nd row. the "36". How do i do that? I tried on
product_size = product_size.span.text[0]
but what i got is
3
3
3
3
3
4
I expect when i print, i got something like this
36
Thanks. Got the feeling this is newb question but i do google around without success.
python python-3.x beautifulsoup
add a comment |
just recently learning web scraping using python 3 and beautifulsoup. I have problem to print the only row i want.
Below i provide the code i use.
product_sizes = view_product.find('dl', id='dl_1')
for product_size in product_sizes.find_all('li'):
product_size = product_size.span.text
print(product_size)
Suppose when i print this, i got this kind of result
35
36
37
38
39
40
I want to let say print the 2nd row. the "36". How do i do that? I tried on
product_size = product_size.span.text[0]
but what i got is
3
3
3
3
3
4
I expect when i print, i got something like this
36
Thanks. Got the feeling this is newb question but i do google around without success.
python python-3.x beautifulsoup
2
no loop:print(product_sizes.find_all('li')[0].text)
- make sure / test if it delivers enough results so you do not get an IndexError -your code prints the 0st character of one result where you want to print the 0st result's.text
– Patrick Artner
Jan 19 at 12:06
4
Possible duplicate of Understanding slice notation
– Patrick Artner
Jan 19 at 12:08
add a comment |
just recently learning web scraping using python 3 and beautifulsoup. I have problem to print the only row i want.
Below i provide the code i use.
product_sizes = view_product.find('dl', id='dl_1')
for product_size in product_sizes.find_all('li'):
product_size = product_size.span.text
print(product_size)
Suppose when i print this, i got this kind of result
35
36
37
38
39
40
I want to let say print the 2nd row. the "36". How do i do that? I tried on
product_size = product_size.span.text[0]
but what i got is
3
3
3
3
3
4
I expect when i print, i got something like this
36
Thanks. Got the feeling this is newb question but i do google around without success.
python python-3.x beautifulsoup
just recently learning web scraping using python 3 and beautifulsoup. I have problem to print the only row i want.
Below i provide the code i use.
product_sizes = view_product.find('dl', id='dl_1')
for product_size in product_sizes.find_all('li'):
product_size = product_size.span.text
print(product_size)
Suppose when i print this, i got this kind of result
35
36
37
38
39
40
I want to let say print the 2nd row. the "36". How do i do that? I tried on
product_size = product_size.span.text[0]
but what i got is
3
3
3
3
3
4
I expect when i print, i got something like this
36
Thanks. Got the feeling this is newb question but i do google around without success.
python python-3.x beautifulsoup
python python-3.x beautifulsoup
edited Jan 19 at 12:07
Patrick Artner
23.5k62343
23.5k62343
asked Jan 19 at 12:02
Muhammad Suhaimi Bin RosliMuhammad Suhaimi Bin Rosli
156
156
2
no loop:print(product_sizes.find_all('li')[0].text)
- make sure / test if it delivers enough results so you do not get an IndexError -your code prints the 0st character of one result where you want to print the 0st result's.text
– Patrick Artner
Jan 19 at 12:06
4
Possible duplicate of Understanding slice notation
– Patrick Artner
Jan 19 at 12:08
add a comment |
2
no loop:print(product_sizes.find_all('li')[0].text)
- make sure / test if it delivers enough results so you do not get an IndexError -your code prints the 0st character of one result where you want to print the 0st result's.text
– Patrick Artner
Jan 19 at 12:06
4
Possible duplicate of Understanding slice notation
– Patrick Artner
Jan 19 at 12:08
2
2
no loop:
print(product_sizes.find_all('li')[0].text)
- make sure / test if it delivers enough results so you do not get an IndexError -your code prints the 0st character of one result where you want to print the 0st result's .text
– Patrick Artner
Jan 19 at 12:06
no loop:
print(product_sizes.find_all('li')[0].text)
- make sure / test if it delivers enough results so you do not get an IndexError -your code prints the 0st character of one result where you want to print the 0st result's .text
– Patrick Artner
Jan 19 at 12:06
4
4
Possible duplicate of Understanding slice notation
– Patrick Artner
Jan 19 at 12:08
Possible duplicate of Understanding slice notation
– Patrick Artner
Jan 19 at 12:08
add a comment |
4 Answers
4
active
oldest
votes
product_size = product_size.span.text[0]
will output the charachter in the 1st position of a string, hence you are getting 3, 3, 3, 3, 3, 4
, instead of 35, 36, 37, 38, 39, 40
There is no need to do a for loop. If you want the 2nd element from your product_sizes.find_all('li')
, you simply just need to call that position with product_sizes.find_all('li')[1]
You can do this in less lines of code as below, but just to show the logic...
#Get all elements in view_product dl, id='dl_1'
product_sizes = view_product.find('dl', id='dl_1')
# From product_sizes, find all the 'li' tags and choose the 2nd element
product_size = product_sizes.find_all('li')[1]
# Get the text
product_size = product_size.span.text
# print the text
print(product_size)
Nice answer. So far you come close to the kind of answer i want. Thanks a lot. This helps.
– Muhammad Suhaimi Bin Rosli
Jan 20 at 4:11
add a comment |
Do this:
product_sizes = view_product.find('dl', id='dl_1')
c = 0
for product_size in product_sizes.find_all('li'):
if c == 1:
print(product_size.span.text)
c = c + 1
This gives you the desired output you're looking for:
36
add a comment |
You probably don't need a loop to achieve what you are looking for.
findall() #It returns a list
You can just do like
product_sizes.find_all('li')
Which returns the list as output then you can slice according to your requirement. For instance, Say 2nd Element then
print(product_sizes.find_all('li')[1].text)
Finally, your code will look like following
product_sizes = view_product.find('dl', id='dl_1')
print(product_sizes.find_all('li')[1].text) #Prints second element.
Output:
36
add a comment |
Thanks all for you input. I tried all and get good answer. Seem simple enough. The reason i want this because i want to print it in csv in one row manner and whenever its got error, i want it to leave blank so it give room to other data, as in spreadsheet fashion. But that is different problem for different day. Want to study 1st then later if i still stuck, will ask in new thread(?).
Btw, Below is the code i write from the knowledge i gain from every answer you guys give here.
product_sizes = view_product.find('dl', id='dl_1')
product_size01 = product_sizes.find_all('li')[0].text.replace('r', '').replace('n', '').replace(" ","")
product_size02 = product_sizes.find_all('li')[1].text.replace('r', '').replace('n', '').replace(" ","")
product_size03 = product_sizes.find_all('li')[2].text.replace('r', '').replace('n', '').replace(" ","")
product_size04 = product_sizes.find_all('li')[3].text.replace('r', '').replace('n', '').replace(" ","")
product_size05 = product_sizes.find_all('li')[4].text.replace('r', '').replace('n', '').replace(" ","")
product_size06 = product_sizes.find_all('li')[5].text.replace('r', '').replace('n', '').replace(" ","")
product_size07 = product_sizes.find_all('li')[6].text.replace('r', '').replace('n', '').replace(" ","")
product_size08 = product_sizes.find_all('li')[7].text.replace('r', '').replace('n', '').replace(" ","")
product_size09 = product_sizes.find_all('li')[8].text.replace('r', '').replace('n', '').replace(" ","")
product_size10 = product_sizes.find_all('li')[9].text.replace('r', '').replace('n', '').replace(" ","")
Thanks you guys for fast answer and awesome community.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54266883%2fpython-how-to-print-only-nth-row-in-print-result%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
product_size = product_size.span.text[0]
will output the charachter in the 1st position of a string, hence you are getting 3, 3, 3, 3, 3, 4
, instead of 35, 36, 37, 38, 39, 40
There is no need to do a for loop. If you want the 2nd element from your product_sizes.find_all('li')
, you simply just need to call that position with product_sizes.find_all('li')[1]
You can do this in less lines of code as below, but just to show the logic...
#Get all elements in view_product dl, id='dl_1'
product_sizes = view_product.find('dl', id='dl_1')
# From product_sizes, find all the 'li' tags and choose the 2nd element
product_size = product_sizes.find_all('li')[1]
# Get the text
product_size = product_size.span.text
# print the text
print(product_size)
Nice answer. So far you come close to the kind of answer i want. Thanks a lot. This helps.
– Muhammad Suhaimi Bin Rosli
Jan 20 at 4:11
add a comment |
product_size = product_size.span.text[0]
will output the charachter in the 1st position of a string, hence you are getting 3, 3, 3, 3, 3, 4
, instead of 35, 36, 37, 38, 39, 40
There is no need to do a for loop. If you want the 2nd element from your product_sizes.find_all('li')
, you simply just need to call that position with product_sizes.find_all('li')[1]
You can do this in less lines of code as below, but just to show the logic...
#Get all elements in view_product dl, id='dl_1'
product_sizes = view_product.find('dl', id='dl_1')
# From product_sizes, find all the 'li' tags and choose the 2nd element
product_size = product_sizes.find_all('li')[1]
# Get the text
product_size = product_size.span.text
# print the text
print(product_size)
Nice answer. So far you come close to the kind of answer i want. Thanks a lot. This helps.
– Muhammad Suhaimi Bin Rosli
Jan 20 at 4:11
add a comment |
product_size = product_size.span.text[0]
will output the charachter in the 1st position of a string, hence you are getting 3, 3, 3, 3, 3, 4
, instead of 35, 36, 37, 38, 39, 40
There is no need to do a for loop. If you want the 2nd element from your product_sizes.find_all('li')
, you simply just need to call that position with product_sizes.find_all('li')[1]
You can do this in less lines of code as below, but just to show the logic...
#Get all elements in view_product dl, id='dl_1'
product_sizes = view_product.find('dl', id='dl_1')
# From product_sizes, find all the 'li' tags and choose the 2nd element
product_size = product_sizes.find_all('li')[1]
# Get the text
product_size = product_size.span.text
# print the text
print(product_size)
product_size = product_size.span.text[0]
will output the charachter in the 1st position of a string, hence you are getting 3, 3, 3, 3, 3, 4
, instead of 35, 36, 37, 38, 39, 40
There is no need to do a for loop. If you want the 2nd element from your product_sizes.find_all('li')
, you simply just need to call that position with product_sizes.find_all('li')[1]
You can do this in less lines of code as below, but just to show the logic...
#Get all elements in view_product dl, id='dl_1'
product_sizes = view_product.find('dl', id='dl_1')
# From product_sizes, find all the 'li' tags and choose the 2nd element
product_size = product_sizes.find_all('li')[1]
# Get the text
product_size = product_size.span.text
# print the text
print(product_size)
answered Jan 19 at 12:36
chitown88chitown88
3,1981420
3,1981420
Nice answer. So far you come close to the kind of answer i want. Thanks a lot. This helps.
– Muhammad Suhaimi Bin Rosli
Jan 20 at 4:11
add a comment |
Nice answer. So far you come close to the kind of answer i want. Thanks a lot. This helps.
– Muhammad Suhaimi Bin Rosli
Jan 20 at 4:11
Nice answer. So far you come close to the kind of answer i want. Thanks a lot. This helps.
– Muhammad Suhaimi Bin Rosli
Jan 20 at 4:11
Nice answer. So far you come close to the kind of answer i want. Thanks a lot. This helps.
– Muhammad Suhaimi Bin Rosli
Jan 20 at 4:11
add a comment |
Do this:
product_sizes = view_product.find('dl', id='dl_1')
c = 0
for product_size in product_sizes.find_all('li'):
if c == 1:
print(product_size.span.text)
c = c + 1
This gives you the desired output you're looking for:
36
add a comment |
Do this:
product_sizes = view_product.find('dl', id='dl_1')
c = 0
for product_size in product_sizes.find_all('li'):
if c == 1:
print(product_size.span.text)
c = c + 1
This gives you the desired output you're looking for:
36
add a comment |
Do this:
product_sizes = view_product.find('dl', id='dl_1')
c = 0
for product_size in product_sizes.find_all('li'):
if c == 1:
print(product_size.span.text)
c = c + 1
This gives you the desired output you're looking for:
36
Do this:
product_sizes = view_product.find('dl', id='dl_1')
c = 0
for product_size in product_sizes.find_all('li'):
if c == 1:
print(product_size.span.text)
c = c + 1
This gives you the desired output you're looking for:
36
edited Jan 19 at 13:44
answered Jan 19 at 12:15
Loss of human identityLoss of human identity
1,1171923
1,1171923
add a comment |
add a comment |
You probably don't need a loop to achieve what you are looking for.
findall() #It returns a list
You can just do like
product_sizes.find_all('li')
Which returns the list as output then you can slice according to your requirement. For instance, Say 2nd Element then
print(product_sizes.find_all('li')[1].text)
Finally, your code will look like following
product_sizes = view_product.find('dl', id='dl_1')
print(product_sizes.find_all('li')[1].text) #Prints second element.
Output:
36
add a comment |
You probably don't need a loop to achieve what you are looking for.
findall() #It returns a list
You can just do like
product_sizes.find_all('li')
Which returns the list as output then you can slice according to your requirement. For instance, Say 2nd Element then
print(product_sizes.find_all('li')[1].text)
Finally, your code will look like following
product_sizes = view_product.find('dl', id='dl_1')
print(product_sizes.find_all('li')[1].text) #Prints second element.
Output:
36
add a comment |
You probably don't need a loop to achieve what you are looking for.
findall() #It returns a list
You can just do like
product_sizes.find_all('li')
Which returns the list as output then you can slice according to your requirement. For instance, Say 2nd Element then
print(product_sizes.find_all('li')[1].text)
Finally, your code will look like following
product_sizes = view_product.find('dl', id='dl_1')
print(product_sizes.find_all('li')[1].text) #Prints second element.
Output:
36
You probably don't need a loop to achieve what you are looking for.
findall() #It returns a list
You can just do like
product_sizes.find_all('li')
Which returns the list as output then you can slice according to your requirement. For instance, Say 2nd Element then
print(product_sizes.find_all('li')[1].text)
Finally, your code will look like following
product_sizes = view_product.find('dl', id='dl_1')
print(product_sizes.find_all('li')[1].text) #Prints second element.
Output:
36
answered Jan 19 at 12:39
Ranjith UdayakumarRanjith Udayakumar
244
244
add a comment |
add a comment |
Thanks all for you input. I tried all and get good answer. Seem simple enough. The reason i want this because i want to print it in csv in one row manner and whenever its got error, i want it to leave blank so it give room to other data, as in spreadsheet fashion. But that is different problem for different day. Want to study 1st then later if i still stuck, will ask in new thread(?).
Btw, Below is the code i write from the knowledge i gain from every answer you guys give here.
product_sizes = view_product.find('dl', id='dl_1')
product_size01 = product_sizes.find_all('li')[0].text.replace('r', '').replace('n', '').replace(" ","")
product_size02 = product_sizes.find_all('li')[1].text.replace('r', '').replace('n', '').replace(" ","")
product_size03 = product_sizes.find_all('li')[2].text.replace('r', '').replace('n', '').replace(" ","")
product_size04 = product_sizes.find_all('li')[3].text.replace('r', '').replace('n', '').replace(" ","")
product_size05 = product_sizes.find_all('li')[4].text.replace('r', '').replace('n', '').replace(" ","")
product_size06 = product_sizes.find_all('li')[5].text.replace('r', '').replace('n', '').replace(" ","")
product_size07 = product_sizes.find_all('li')[6].text.replace('r', '').replace('n', '').replace(" ","")
product_size08 = product_sizes.find_all('li')[7].text.replace('r', '').replace('n', '').replace(" ","")
product_size09 = product_sizes.find_all('li')[8].text.replace('r', '').replace('n', '').replace(" ","")
product_size10 = product_sizes.find_all('li')[9].text.replace('r', '').replace('n', '').replace(" ","")
Thanks you guys for fast answer and awesome community.
add a comment |
Thanks all for you input. I tried all and get good answer. Seem simple enough. The reason i want this because i want to print it in csv in one row manner and whenever its got error, i want it to leave blank so it give room to other data, as in spreadsheet fashion. But that is different problem for different day. Want to study 1st then later if i still stuck, will ask in new thread(?).
Btw, Below is the code i write from the knowledge i gain from every answer you guys give here.
product_sizes = view_product.find('dl', id='dl_1')
product_size01 = product_sizes.find_all('li')[0].text.replace('r', '').replace('n', '').replace(" ","")
product_size02 = product_sizes.find_all('li')[1].text.replace('r', '').replace('n', '').replace(" ","")
product_size03 = product_sizes.find_all('li')[2].text.replace('r', '').replace('n', '').replace(" ","")
product_size04 = product_sizes.find_all('li')[3].text.replace('r', '').replace('n', '').replace(" ","")
product_size05 = product_sizes.find_all('li')[4].text.replace('r', '').replace('n', '').replace(" ","")
product_size06 = product_sizes.find_all('li')[5].text.replace('r', '').replace('n', '').replace(" ","")
product_size07 = product_sizes.find_all('li')[6].text.replace('r', '').replace('n', '').replace(" ","")
product_size08 = product_sizes.find_all('li')[7].text.replace('r', '').replace('n', '').replace(" ","")
product_size09 = product_sizes.find_all('li')[8].text.replace('r', '').replace('n', '').replace(" ","")
product_size10 = product_sizes.find_all('li')[9].text.replace('r', '').replace('n', '').replace(" ","")
Thanks you guys for fast answer and awesome community.
add a comment |
Thanks all for you input. I tried all and get good answer. Seem simple enough. The reason i want this because i want to print it in csv in one row manner and whenever its got error, i want it to leave blank so it give room to other data, as in spreadsheet fashion. But that is different problem for different day. Want to study 1st then later if i still stuck, will ask in new thread(?).
Btw, Below is the code i write from the knowledge i gain from every answer you guys give here.
product_sizes = view_product.find('dl', id='dl_1')
product_size01 = product_sizes.find_all('li')[0].text.replace('r', '').replace('n', '').replace(" ","")
product_size02 = product_sizes.find_all('li')[1].text.replace('r', '').replace('n', '').replace(" ","")
product_size03 = product_sizes.find_all('li')[2].text.replace('r', '').replace('n', '').replace(" ","")
product_size04 = product_sizes.find_all('li')[3].text.replace('r', '').replace('n', '').replace(" ","")
product_size05 = product_sizes.find_all('li')[4].text.replace('r', '').replace('n', '').replace(" ","")
product_size06 = product_sizes.find_all('li')[5].text.replace('r', '').replace('n', '').replace(" ","")
product_size07 = product_sizes.find_all('li')[6].text.replace('r', '').replace('n', '').replace(" ","")
product_size08 = product_sizes.find_all('li')[7].text.replace('r', '').replace('n', '').replace(" ","")
product_size09 = product_sizes.find_all('li')[8].text.replace('r', '').replace('n', '').replace(" ","")
product_size10 = product_sizes.find_all('li')[9].text.replace('r', '').replace('n', '').replace(" ","")
Thanks you guys for fast answer and awesome community.
Thanks all for you input. I tried all and get good answer. Seem simple enough. The reason i want this because i want to print it in csv in one row manner and whenever its got error, i want it to leave blank so it give room to other data, as in spreadsheet fashion. But that is different problem for different day. Want to study 1st then later if i still stuck, will ask in new thread(?).
Btw, Below is the code i write from the knowledge i gain from every answer you guys give here.
product_sizes = view_product.find('dl', id='dl_1')
product_size01 = product_sizes.find_all('li')[0].text.replace('r', '').replace('n', '').replace(" ","")
product_size02 = product_sizes.find_all('li')[1].text.replace('r', '').replace('n', '').replace(" ","")
product_size03 = product_sizes.find_all('li')[2].text.replace('r', '').replace('n', '').replace(" ","")
product_size04 = product_sizes.find_all('li')[3].text.replace('r', '').replace('n', '').replace(" ","")
product_size05 = product_sizes.find_all('li')[4].text.replace('r', '').replace('n', '').replace(" ","")
product_size06 = product_sizes.find_all('li')[5].text.replace('r', '').replace('n', '').replace(" ","")
product_size07 = product_sizes.find_all('li')[6].text.replace('r', '').replace('n', '').replace(" ","")
product_size08 = product_sizes.find_all('li')[7].text.replace('r', '').replace('n', '').replace(" ","")
product_size09 = product_sizes.find_all('li')[8].text.replace('r', '').replace('n', '').replace(" ","")
product_size10 = product_sizes.find_all('li')[9].text.replace('r', '').replace('n', '').replace(" ","")
Thanks you guys for fast answer and awesome community.
answered Jan 20 at 4:09
Muhammad Suhaimi Bin RosliMuhammad Suhaimi Bin Rosli
156
156
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54266883%2fpython-how-to-print-only-nth-row-in-print-result%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
no loop:
print(product_sizes.find_all('li')[0].text)
- make sure / test if it delivers enough results so you do not get an IndexError -your code prints the 0st character of one result where you want to print the 0st result's.text
– Patrick Artner
Jan 19 at 12:06
4
Possible duplicate of Understanding slice notation
– Patrick Artner
Jan 19 at 12:08