How to sort lines in file by number of words?
How to sort lines in file by number of words? Question: I’ve started a python course for beginners. I have a file with lines: "I was angry with my friend I told my wrath my wrath did end I was angry with my foe I told it not my wrath did grow" I need to …