Question: Part B Q3 implement a function insertElement(myList, e, i) that inserts an elemente at index 1 of myList in place. def InsertElement(mylist, e, 1) Inserta
Part B Q3 implement a function insertElement(myList, e, i) that inserts an elemente at index 1 of myList in place. def InsertElement(mylist, e, 1) Inserta an elemente into index i of mylist. YOUR CODE HERR raise Not ImplementedError() tot Toating cell mytoint -11. 2. 3. 41 awwert insertalenant (myndst, 5.0) -- Mone assert nyListoj 5 insertlement (mylio, 6, 1) assert mylitos assert nyit 6 insertlement (myllat, , leniny.cat assert lonimylint) usert nylist-1] - 04 Implement a function findElenent (myList, e) that returns the index of the first occurence of elemente in myList. Do not use any built-in functions. YOUR CODE ARRE raise Not ImplementedError() Testing cell my.int | 5, 71 usert finde lemtent(nylist, 7) - 1 assert findElement(mylist, 14) - None
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
