Write a python program to print the last element of a list


Topic: Write a python program to print the last element of a list

Solution

list1 = ['p','r','o','b','e']
print(list1[-1])



List all Python Programs