i tested it it is showing the length of the list is 1 but when i give one its giving an error because im asking 2 index inside the if condition