Questions and Answers
What is the purpose of the(lst.remove(val)) line in the Q14 function?
To remove the minimum value from the list
What is the output of the Q14 function when given the input [-1, 1, -2, 2, 3.14, -3.14, -6, 6.1]?
[-6, -3.14, -2, -1, 1, 2, 3.14, 6.1]
What does the Q12 function do?
Finds the maximum value in the list and removes it
What is the purpose of the beta variable in the Q13 function?
Signup and view all the answers
What is the return value of the Q13 function?
Signup and view all the answers
What is the main difference between the map and filter functions in Python?
Signup and view all the answers
What is the purpose of the lambda function in the f1q10 function?
Signup and view all the answers
What is the output of the list comprehension [x for x in lst if x % 2 == 0]?
Signup and view all the answers
What does the map function do in the f1q10 function?
Signup and view all the answers
What is the purpose of the f1q8 function?
Signup and view all the answers
How do you insert 'x' between '4' and '6' in the list lst?
Signup and view all the answers
What is the value of len(matrix) for a 4*6 list?
Signup and view all the answers
What is the output of the function f1q1 when called with arguments 'abcdef' and 'xyz'?
Signup and view all the answers
What does the function f1q2 do?
Signup and view all the answers
What is the output of the function f1q4 when called with the input [14, 46, 43, 27, 57, 41]?
Signup and view all the answers
What is the purpose of the function f1q5?
Signup and view all the answers
What is the time complexity of the function f1q4?
Signup and view all the answers
What is the space complexity of the function f1q5?
Signup and view all the answers
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.