Question: A sequence {ai} n i=1 is an arithmetic sequence if there exists a number d such that ai ai1 = d for all i =
A sequence {ai} n i=1 is an arithmetic sequence if there exists a number d such that ai ai1 = d for all i = 1 . . . , n. Write a function isAP that takes a list as argument and returns True if the elements of the list form an arithmentic sequence else it returns False. How will you test the function for the sequence 1,3,5,6,9,11,13?using python
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
