About 5,830,000 results
Open links in new tab
  1. How to completely remove Python from a Windows machine?

    I had window 7 (64 bit) and Python 2.7.12, I uninstalled it by clicking the python installer from the "download" directory then I selected remove python then I clicked “ finish”. I also removed the …

  2. How can I delete a file or folder in Python? - Stack Overflow

    Aug 9, 2011 · Deleting a file or folder in Python. There are multiple ways to delete a file in Python but the best ways are the following: os.remove() removes a file. os.unlink() removes a file. It is …

  3. python - Best way to remove elements from a list - Stack Overflow

    Feb 2, 2014 · del: is a python statement that removes a name from a namespace, or an item from a dictionary, or an item from a list by using the index. REMOVE: it removes the first occurence …

  4. Difference between del, remove, and pop on lists in Python

    Feb 21, 2024 · While pop and delete both take indices to remove an element as stated in above comments. A key difference is the time complexity for them. The time complexity for pop() with …

  5. python - Delete an element from a dictionary - Stack Overflow

    May 1, 2011 · … how can I delete an item from a dictionary to return a copy (i.e., not modifying the original)? A dict is the wrong data structure to use for this. Sure, copying the dict and …

  6. python - How to remove an element from a list by index - Stack …

    Mar 9, 2009 · @smci: Python list is array-based: to delete an item in the middle, you have to move all items on the right to remove the gap that is why it is O(n) in time operation. deque() …

  7. Uninstalling Python Completely from Windows - Stack Overflow

    Jan 3, 2024 · However, when I run the "python --version" command on git bash, I get the output indicating that I have python version 3.10.12 installed on my computer. I've uninstalled python …

  8. python - Remove and Replace Printed items - Stack Overflow

    @Trevor This answer was written to work in both Python 2 and 3. I know the question is tagged "python-3.x", but back in 2011 hardly anyone was using Python 3, so I wrote an answer that …

  9. python - Is there a way to delete created variables, functions, etc ...

    Oct 24, 2014 · Python doesn’t make any security guarantees about data in memory however. When objects no longer are referenced the interpreter marks the memory as no longer in use …

  10. Python Anaconda - How to Safely Uninstall - Stack Overflow

    Jan 25, 2017 · then, run the following command to delete files step by step: anaconda-clean Or, just run following command to delete them all-anaconda-clean --yes After this Open Control …

Refresh