system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Would radars work in space?

Would radars work better, worse or at all in space? if not, is there anything that would work similar?
gpt
Yes they would work, since they use electromagnetic waves and electromagnetic waves propagate even without air (unlike sound waves, which is why a sonar wouldn't work).

In space a radar would maybe work better but it is mostly due to the fact that it would have a greater line of sight than on Earth, since radio waves would behave almost the same both on Earth and in space.