Given two strings. write a Python program is to find which letters are in the two strings but not in both.
Input: india australia Output: s t r n d u l
Steps to be performed:
- Take two string input and store them in different variables.
- Convert them into set and look for letters inside in two strings but not in both.
- Store those letters in different list.
- Print that list.
Below is the implementation.
The letters are: h v t a r
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course