Chapter 01: Basic Python Programming

Lists are defined using square brackets [] instead of using parentheses like a tuple. Like tuples and strings, lists are accessed by using square brackets []. Lists can be sliced just like tuples. T = (12,43,17) # This is a tuple definition. L = [12,43,17] # This is a list definition. print( T[0] ) # print first element of tuple ................
................