def is_geometric(li): : return True # Calculate ratio ratio = li[]/]) # Check the ratio of the remaining , len(li)): ]) != ratio: return False return True print(is_geometric([, , , ])) print(is_geometric([, , 2.5, 1.25])) print(is_geometric([, , , ])…