python - How to get everything from the list except the first element using list slicing -


this question has answer here:

so have parsing, here example of do:

list = ['a', 'b', 'c'] 

and using list slicing have return me first index. in case:

['b', 'c'] 

i have been messing stuff list[:-1], list[::-1], list[0:-1], etc. can't seem able find out.

what actual doing is: * have error message has error code in beginning such as:

['226', 'transfer', 'complete'] 

and want display transfer complete on popup widget. of course casting string.

thank help, , if answer differs via python 2.7.x , python 3.x.x please answer both versions.

thanks, looked lot around stackoverflow , python tutorials couldn't quite looking for. help!

you can [1:]. work on both versions.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -