<P> `` We Can Work It Out '' is a song by the English rock band the Beatles , written by Paul McCartney and John Lennon . It was first issued as a double A-side single with `` Day Tripper '' in December 1965 . The release marked the first time in Britain that both tracks on an artist 's single were promoted as joint A-sides . The song was recorded during the sessions for the band 's Rubber Soul album . The single was number 1 in Britain ( where it was also the top - selling single of 1965 ) , America , Australia , Canada and Ireland . </P>
when was we can work it out written
1965