Sep-16-2019, 01:17 PM
str1= 'ABCdef' str2= 'ABCdaf' u=zip(str1,str2) print (u) for i,j in u: if i==j: print (i,'--',j) else: print (i,' ',j)I want to get the positions where inequality
How to get the position of character
|
|
Messages In This Thread |
How to get the position of character - by SriRajesh - Sep-16-2019, 12:11 PM
RE: How to get the position of character - by ichabod801 - Sep-16-2019, 12:32 PM
RE: How to get the position of character - by SriRajesh - Sep-16-2019, 12:40 PM
RE: How to get the position of character - by perfringo - Sep-16-2019, 01:05 PM
RE: How to get the position of character - by ichabod801 - Sep-16-2019, 12:46 PM
RE: How to get the position of character - by SriRajesh - Sep-16-2019, 01:17 PM
RE: How to get the position of character - by perfringo - Sep-16-2019, 01:22 PM
|