John Lenon and Paul McCartney split credit for all the songs they wrote during the Beatles, even if the song was primarily or totally written by just one of them. People like to speculate about who wrote what, and after the Beatles broke up both John's would sometimes say who did, but they didn't always agree.