1.Implement a function which will -
+ Accept a number,
num, and a list, my_list as
arguments
+ return True if
num exists in my_list
+ return False otherwise
2. Write Python code to implement the following function -
def find_in_list(item, my_list):
"""
Look for an item from my_list (of items.)
If the item is found, return the index position
of the item;
otherwise, return -1.
"""
#add your code here
3. Given the following list:
matrix =
[[1,2,3],[4,5,6],[7,8,9]]
Implement logic to extract [7, 5, 3] from
matrix.
/*If you have any query do comment in the comment section else like the solution*/
1.
2.
Get Answers For Free
Most questions answered within 1 hours.