There are many ways to cook an egg, but one of the simplest and most versatile methods is to fry it. Here are the steps:
Heat a non-stick frying pan over medium-high heat.
Add a small amount of oil or butter to the pan and let it melt.
Crack the egg into a small bowl or ramekin, being careful not to break the yolk.
Once the pan is hot, gently pour the egg into the pan.
Cook the egg for 2-3 minutes, until the whites are set but the yolk is still runny.
Using a spatula, carefully flip the egg over and cook for an additional 30 seconds to 1 minute, depending on how well-done you like your yolk.
Use the spatula to remove the egg from the pan and transfer it to a plate.
Season with salt and pepper, and enjoy!
Note: You can also cook an egg in many other ways, such as boiling, poaching, scrambling, or baking, depending on your preferences and the recipe you're using.