Created
March 5, 2022 13:43
-
-
Save tcpdump-examples/a92c4974160ed9fb55fbd96332546463 to your computer and use it in GitHub Desktop.
Revisions
-
tcpdump-examples created this gist
Mar 5, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ how to get last element of a list in python ``` list1 = [1, 2, 3, 4, 5] print(list1[len(list1)-1]) 5 print(list1[-1]) 5 print(list1.pop()) 5 ``` [how to get last element of a list in python](https://www.howtouselinux.com/post/get-last-element-of-a-list-in-python)