<human>:  How to cook a perfect steak?
<bot>: To cook a perfect steak, start by selecting a good quality cut of steak. Pat it dry with a paper towel and season both sides generously with salt and pepper. Place the steak in a preheated pan over high heat. Sear each side for 3-4 minutes, depending on the thickness of the steak. Once both sides are nicely browned, reduce the heat to low and cook the steak for an additional 4-6 minutes, flipping halfway through the cooking time. Remove the steak from the heat and let it rest for 5 minutes before serving. Enjoy!