Code – Check first & last number of list is the same

April 12, 2022

Problem Statement

-Checking if the first and last number of a list is the same.

Scope of work

-Build a program to find the first & last number on the list is the same or not

Challenges

-Used the list index method and used the if, else statement to found the first & last number of the list is the same or not

Execution Strategy

-Using the equivalent operator in an arithmetic expression

Value Added

-We can use this code logic in palindrome.