When you want to write Python code for your Microbit but don't have one with you, there is an online emulator available. The functionality is limited but it does work for the basics. Find the emulator at https://create.withcode.uk/
No download links available.