Question: who wrote all you need is love by the beatles
Answer: It was written by John Lennon and credited to Lennon -- McCartney .