***********Challenge**************** | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

***********Challenge****************

make programming which will accept to words or name and find out the similar alphabets on each. example :- IWIN CLINT similar alphabets are = 2 ("I"&"N" is present on both the words ) else other not similar =7 (Remember only find the similarities on both words not of one because you can see in"IWIN" to "I" is already present). this programming is applicable to all programming languages.

19th Nov 2017, 8:34 AM
Iwin Clint
Iwin Clint - avatar
4 Answers
+ 31
Please explain, how do you count not similar letters? Did you count the "N" letters? "N" is also presented in both words.
19th Nov 2017, 9:47 AM
Igor Makarsky
Igor Makarsky - avatar
+ 8
#python... #input system:kazi,mridul #output:1 a=input().split(","); print(len([i for i in a[0] if i in a[1]]))
19th Nov 2017, 11:42 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 8
#python... #another way.. #but don't run it sololearn. #run it python compiler if u have print(len([i for i in input() if i in input()]))
19th Nov 2017, 11:47 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 1
Yeah, your challenge is phrased really bad... I hope I understood you correctly. Here's my attempt: https://code.sololearn.com/W14kZ9g1p5hE/?ref=app
19th Nov 2017, 10:44 AM
Augustinas Lukauskas
Augustinas Lukauskas - avatar