The simplest way is to take turns. If a game only supports one player at a time, you and a friend can alternate, each having a go before passing control back and forth.
It's not the same as true co-op, but it's an easy way to share a single-player experience with someone else.