This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
2
Need to know if there is a difference between time
Post Body
Let's say i have a list with 10 elements. And i want to obtain the last 3 elements by slicing. Does my_list[7:] and my_list[-3:] have any difference in execution time? Or does Python interpret -3 as len(my_list)-3 and start counting from the left side or can it count from the right?
Sorry for the dull title. Appearantly, this sub requires min. 10 words for titles...
Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
477
Link Karma
171
Comment Karma
296
Profile updated: 1 day ago
Posts updated: 2 days ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnpython...