{"id":12413,"date":"2021-09-30T11:30:45","date_gmt":"2021-09-30T06:00:45","guid":{"rendered":"https:\/\/python-programs.com\/?p=12413"},"modified":"2021-11-22T18:35:28","modified_gmt":"2021-11-22T13:05:28","slug":"python-program-to-check-whether-given-array-or-list-can-form-arithmetic-progression","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-whether-given-array-or-list-can-form-arithmetic-progression\/","title":{"rendered":"Python Program to Check Whether given Array or List Can Form Arithmetic Progression"},"content":{"rendered":"

Grab the opportunity to learn all effective java programming language concepts from basic to advance levels by practicing these Java Program Examples with Output<\/a><\/p>\n

Arithmetic Progression:<\/strong><\/p>\n

Arithmetic Progression (AP) is a numerical series in which the difference between any two consecutive numbers is a constant value. For instance, the natural number sequence: 1, 2, 3, 4, 5, 6,… is an AP with a common difference between two successive terms (say, 1 and 2) equal to 1. (2 -1). Even when dealing with odd and even numbers, we can observe that the common difference between two sequential terms is equal to 2.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given List = [9, 15, 21, 27, 33, 39, 45, 51, 57, 63, 69]<\/pre>\n

Output:<\/strong><\/p>\n

The given list [9, 15, 21, 27, 33, 39, 45, 51, 57, 63, 69] is in AP<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given List = [3, 9, 15, 21, 27, 33, 39, 45, 51, 57, 63, 69, 75, 81, 87, 93, 99, 105]<\/pre>\n

Output:<\/strong><\/p>\n

The given list [3, 9, 15, 21, 27, 33, 39, 45, 51, 57, 63, 69, 75, 81, 87, 93, 99, 105] is in AP<\/pre>\n

Python Program to Check Whether given Array or List Can Form Arithmetic Progression<\/h2>\n

Below are the ways to Check Whether the given array or list can form the Arithmetic Progression series.<\/p>\n