What do you want to save?
Add Code snippet
New code examples
-
Python 2021-08-28 15:52:01
python get first element in a list
# Python3 code to demonstrate # to get first and last element of list # using list indexing # initializing list test_list = [1, 5, 6, 7, 4] # printing original list print ("The original list is : " + str(test_list)) # using l... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5