How do I compare two strings in python?

I have two strings like

string1="abc def ghi"

and

string2="def ghi abc"

How to get that this two string are same without breaking the words?

Leave a Comment

tech