Question: def get_first_different_index(sequence1, sequence2): sequencel: str sequence2: str Returns int. Given 2 sequences of the same length, return the first index from the left where the
def get_first_different_index(sequence1, sequence2): sequencel: str sequence2: str Returns int. Given 2 sequences of the same length, return the first index from the left where the 2 strings differ. If the 2 sequences match exactly, return -1. Your function should work even if the 2 sequences don't have the same case. Precondition: sequencel and sequence2 have the same length pass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
