Sep-21-2018, 12:17 AM
It makes it very difficult to copy your code and run it.
What IDE are you using?
What IDE are you using?
How to use Del with list
|
Sep-21-2018, 12:17 AM
It makes it very difficult to copy your code and run it.
What IDE are you using?
Sep-21-2018, 01:08 PM
(This post was last modified: Sep-21-2018, 01:09 PM by gruntfutuk.)
I'm really struggling to understand what your objective is as you've been given two approaches to removing the first and last elements:
If you are wanting to do something different to what you've already described, where you need to keep track of elements in a list whilst deleting, there are two common approaches:
I am trying to help you, really, even if it doesn't always seem that way
Sep-21-2018, 05:38 PM
(This post was last modified: Sep-21-2018, 05:51 PM by slashdotblake.)
(Sep-21-2018, 12:17 AM)Larz60+ Wrote: It makes it very difficult to copy your code and run it. VIM with Syntastic and some other plugins. Maybe there is an export code option somewhere that removes the line numbers and markups. That is why I initially posted to hastebin. That and pastebin people have been using for years. Makes it really easy to copy and paste. Thank you all for your responses. Really appreciate the help.
Sep-21-2018, 10:11 PM
you can also use something like VSCode then it's as simple as highlight, ctrl-C, ctrl-V
|
|