Computer Science
Are the following two assignments same ? Why / why not ?
T1 = 3, 4, 5 T2 = ( 3, 4 , 5)
2.
T3 = (3, 4, 5)
T4 = (( 3, 4, 5))
Related Questions
Does the slice operator always produce a new tuple ?
The syntax for a tuple with a single item is simply the element enclosed in a pair of matching parentheses as shown below :
t = ("a")
Is the above statement true? Why? Why not ?What would following statements print? Given that we have tuple= ('t', 'p', 'l')
- print("tuple")
- print(tuple("tuple"))
- print(tuple)
How is an empty tuple created ?