Question: 3) Write a function to return True if the first and last number of a given list is same. If numbers are different then return

3) Write a function to return True if the first and last number of a given list is same. If numbers are different then return False. a. Given input: numbers x=[10,20,30,40,10] numbers, y=[75,65,35,75,30] b. Expected output: Given list: [10,20,30,40,10] result is True numbers,y =[75,65,35,75,30] result is False 4) Iterate the given list (from \#3) of numbers and print only those numbers which are divisible by 5 a. Expected Output: Given list is [10,20,33,46,55] Divisible by 5 10 20 55 5) Write a program to find how many times substring "Anjali" appears in the given string. a. Given input: str x= "Anjali is good developer. Anjali is a writer" b. Expected output: Anjali appeared 2 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
