Day 8: ------- Tuple Questions(Theory ): ----------------------- 1.What is tuple? 2.What is the differece between list and tuple? 3.What are the methods present in tuple? 4.Advantages of Tuple over List? 5.How to remove the values present in tuple? QUESTION 1: ------------------ QUESTION 1.1: -------------------- Description : Create a new tuple with values and find the length of it Input : tuple = 10,20,30,90,10,10,40,50 QUESTION 1.2: -------------------- Description : Create a new tuple with values and find the length of it Input : tuple = 100,200,300,400,500,600,700 QUESTION 1.3: -------------------- Description : Create a new tuple with values and find the length of it Input : tuple = python,selenium,sql,java QUESTION 1.4: -------------------- Description : Create a new tuple with values and find the length of it Input : tuple =10,20,30,90,10,10,40,50,python,java,22.4,True QUESTION 2: ------------------ QUESTION 2.1: ------------------- Description : Get the first index value of 10 Input: tuple =10,20,30,90,10,10,40,50 QUESTION 2.2: -------------------- Description : Get the last index value of 10 Input: List = 10,20,30,90,10,10,40,50 QUESTION 2.3: -------------------- Description : Get the index value of 50 Input: tuple = 10,20,30,90,10,10,40,50 QUESTION 2.4: -------------------- Description : Get the index value of 200 Input: tuple = 10,20,30,90,10,10,40,50 QUESTION 2.5: -------------------- Description : Get the each index value of 10 present in below tuple Input: tuple = 10,20,30,90,10,10,40,50,10 QUESTION 3: ------------------ QUESTION 3.1: -------------------- Description : Get the value present at 2nd index Input: tuple = 10,20,30,40,50,60 QUESTION 3.2: -------------------- Description : Get the value present at 4th index Input: tuple = 100,200,300,400,500,600,700 QUESTION 3.3: -------------------- Description : Get the value present at 12th index Input: tuple = 105,205,305,405,505,605,705,805 QUESTION 3.4: -------------------- Description : Get the value present at -3rd index Input: tuple = 105,205,305,405,505,605,705,805 QUESTION 3.5: -------------------- Description : Get the value present at -8th index Input: tuple = 105,205,305,405,505,605,705,805 QUESTION 4: ------------------ QUESTION 4.1: -------------------- Description : Add a value 100 at the last position of tuple Input: tuple = 10,20,30,90,10,10,40,50 QUESTION 4.2: -------------------- Description : Add a value 'python' at the last position of tuple Input: tuple = 10,20,30,90,10,10,40,50 QUESTION 4.3: -------------------- Description : Add a values (100,200,300) at the last position of tuple Input: tuple = 10,20,30,90,10,10,40,50 QUESTION 4.4: -------------------- Description : Add a values ('java','python') at the last position of tuple Input: tuple = 10,20,30,90,10,10,40,50 QUESTION 5: ------------------ QUESTION 5.1: -------------------- Description : Count the 10 value present in tuple Input: tuple = 10,20,30,90,10,10,40,50,10 QUESTION 5.2: -------------------- Description :Find the maximum value in tuple Input: tuple = 10,20,30,90,10,10,40,50,10 QUESTION 5.3: -------------------- Description :Find the maximum value in tuple Input: tuple = python,selenium,sql,java QUESTION 5.4: -------------------- Description :Find the minimum value in tuple Input: tuple = 10,20,30,90,10,10,40,50,10 QUESTION 5.5: -------------------- Description :Find the minimum value in tuple Input: tuple = python,selenium,sql,java QUESTION 6: -------------------- QUESTION 6.1: -------------------- Description :Convert string into tuple Input:python QUESTION 6.2: -------------------- Description :Convert list into tuple Input:List = ['java','python',20,10,60] QUESTION 7: -------------------- QUESTION 7.1: -------------------- Description : To check weather value 200 is present or not in tuple Input: tuple = 105,205,305,405,505,605,705,805 QUESTION 7.2: -------------------- Description : To check weather value 505 is present or not in tuple Input: tuple = 105,205,305,405,505,605,705,805 QUESTION 7.3: -------------------- Description : Create a tuples with values and compare the two tuple Input: tuple = 10,20,30,40,50,60 Input: tuple1 = 10,20,30,40,50,60 QUESTION 7.4: -------------------- Description : Create a tuples with values and compare the two tuple Input: tuple = 10,20,30,40,50,60 Input: tuple1 = 60,20,30,40,50,10 QUESTION 8: -------------------- QUESTION 8.1: -------------------- Description : Get the each value of tuple by using for loop Input: tuple = 105,205,305,405,505,605,705,805 QUESTION 8.2: -------------------- Description : Get the each value of tuple by using Enumarate for loop Input: tuple = 105,205,305,405,505,605,705,805 QUESTION 8.3: --------------------- Description : Get the each value of tuple by using Enumarate for loop and print only even index value Input: tuple = 105,205,305,405,505,605,705,805