Python Programming Lab (Program - 18) String Difference Using Functions

preview_player
Показать описание
Python Programming Lab (Program - 18) String Difference Using Functions

Write a function called first_diffthat is given two strings and returns the first location in which the strings differ. If the strings are identical, it should return -1.

download the programs from the below link

For All Programs visit my blog:

Anybody can reach me for communication, doubts or any other issues
Рекомендации по теме
Комментарии
Автор

Sir
In the question u r discussed about only strings, ..which have equal it applicable..if we given input as strings, ..which have different length sir

annam
Автор

sir in this program u have said that if s1[1]!=s2[1] return(i+1), but a!=a means it is true know sir, but u've said it is false, i'm getting confused.
please clear the dought sir

leelaleela