Python Tuple Practice Questions


  1. Which of the following statement(s) would give an error during execution of the following code?

    tup = (20,30,40,50,80,79)
    print(tup)          #Statement 1
    print(tup[3]+50)    #Statement 2
    print(max(tup))     #Statement 3
    tup[4]=80           #Statement 4
    
  2. (d) Statement 4