If you had two strings,
string1 = "Rahul 123 Mumbai Shivani 234 Mumbai Akash 345 Mumbai Rahul 456 Bangalore"
string2 = "Rahul 123 Mumbai"
How do you find out the difference?
As in, the final output should be -
"Shivani 234 Mumbai Akash 345 Mumbai Rahul 456 Bangalore"
I tried using str.strip()
, but it's giving me incorrect answers.