Question: 4.(20 points) Programming Create a list containing the odd elements between 0 and 20. Search for element 15, 25, if element exist, return the value
4.(20 points) Programming Create a list containing the odd elements between 0 and 20. Search for element 15, 25, if element exist, return the value of the element and its index position in the list. If element does not exist, ensure no ValueError occurs and output "cannot find the element" message and element value 4.(20 points) Programming Create a list containing the odd elements between 0 and 20. Search for element 15, 25, if element exist, return the value of the element and its index position in the list. If element does not exist, ensure no ValueError occurs and output "cannot find the element" message and element value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
