Test Index
CBSE Class 12 Computer Science 2023 Paper Set 4
© examsnet.com
Question : 29 of 35
Marks:
+1,
-0
Write a function
EOReplace() in Python, which accepts a list L of numbers. Thereafter, it increments all even numbers by 1 and decrements all odd numbers by 1.Example :If Sample Input data of the list is :L=[10,20,30,40,35,55]Output will be :
L=[11,21,31,41,34,54]
Go to Question: