4 ms·
For the example in the text I'd typically just include a one line comment above to show what an example string would look like and leave the code as is # URL
by schemathings 4y ago
For the example in the text I'd typically just include a one line comment above to show what an example string would look like and leave the code as is
# URL with params https://news.ycombinator.com/item?id=32963021&something=value1&something=value2 https://news.ycombinator.com/item?id=32963021&something=valu...
map(lambda x: x.split('=')[1], s.split('?')[1].split('&')[-3:])