List Comprehension:: A ("Apple", "Banana", "Cherry") For I in Range (Len (A) ) : Print (A (I) )
List Comprehension:: A ("Apple", "Banana", "Cherry") For I in Range (Len (A) ) : Print (A (I) )
#method5:
def swapList(list):
first = list.pop(0)
last = list.pop(-1)