How to remove an item from an array in Python?
-
for x in range(0, 9999, 2): a.pop(x) I have an array with the numbers 1 to 10,000 in it. I would like jump through the list in 2s, which I have managed successfully. However, I ...show more
-
Answer:
Edit: I think i know what you are trying to say now. First off, it would seem that your 'array' is a list (since .pop() is for lists, there aren't really native arrays in python). What you may need is to use list.remove(x)
OKMJDL34A75NPWVNAAWLBGWPNA at Yahoo! Answers Visit the source
Related Q & A:
- How To Track My Item On Australia Post?Best solution by auspost.com.au
- How to get 'name' attribute of item of string-array?Best solution by Stack Overflow
- How to remove first element in multidimentional array?Best solution by Stack Overflow
- How to delete an entry from a dictionary in Python?Best solution by Stack Overflow
- How do I remove an item from my toolbar?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.