I saw a movie in the 1960’s about a man who was engaged and had never had sex and had no knowledge about sex so he tries to find ways to learn about sex. In the last scene he goes to a hotel room to meet a prostitute and when he enters the room the light is off and the prostitute tells him to come to bed. After the sex scene he goes to leave turns the light on and sees that the prostitute is his future bride. This may not be the exact details but it is as close as I can remember. The comedian in this movie was similar to Dudley Moore as I remember.