This question already has an answer here:
I am traveling to Paris via Ryanair from Copenhagen and there is a 9 hours layover in London, UK. I am planning to go out of the airport for 3 or 4 hours to visit the city during my layover. Do I need to have a transit visa or a general tourist visa, or can I simply go without a visa? I have a residence permit of Denmark. I am from Nepal.