Variables and Datatypes Questions
Q. Which method removes and returns the last item in a list?
View SolutionQ. What is the output of tuple([1, 2, 3])?
View SolutionQ. Which method adds an item to a list?
View SolutionQ. What is the output of [1, 2] + [3, 4]?
View SolutionQ. Which method joins a list of strings?
View SolutionQ. What is the output of ‘abc’.find(‘b’)?
View SolutionQ. Which method counts occurrences of a substring?
View SolutionQ. What is the output of ‘text’.isalpha()?
View SolutionQ. What is the output of ‘PYTHON’.title()?
View SolutionQ. Which method checks if a string ends with a suffix?
View SolutionGet Question Bank
Strengthen Your Practice with our comprehensive question bank.