Test Index
CBSE Class 12 Computer Science 2023 Paper Compartment
© examsnet.com
Question : 29 of 35
Marks:
+1,
-0
Write a function
search_replace() in Python which accepts a list L of numbers and a number to be searched. If the number exists, it is replaced by 0 and if the number does not exist, an appropriate message is displayed.Example :L = [10,20,30,10,40]Number to be searched = 10List after replacement :L = [0,20,30,0,40]
Go to Question: