Python Tutorial - Find common characters in two strings using PYTHON

Veröffentlicht am: 10 Oktober 2017
auf dem Kanal: Appanna Damu
2,457
7

Hi everyone , in this video am going to explain ,How to find common letters or characters in two strings,
Note: This video is only for Beginners,
lets start the code,
Lets read two strings from keyboard
Now use set function and also apply the '&' operation between two strings,
lets store the result in one more variable comm,
now use print function to print comm,
now run the code,
Enter string 1 and string 2 on console,
we got letter 'a' that is common between two given strings,
THANK YOU FOR WATCHING THIS VIDEO,



s1=input('Enter string 1:')
s2=input('Enter String 2:')
comm=set(s1)&set(s2)
print (comm)



































































































































































































































































































































common characters between two strings in python
common letters in two string in python definition
common letters in two string in python example
common letters in two string in python list
how to find common characters in two strings in python
program to find common characters in two strings in python


Auf dieser Seite können Sie das Online-Video Python Tutorial - Find common characters in two strings using PYTHON mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Appanna Damu 10 Oktober 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,457 Mal angesehen und es wurde von 7 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!