请提供一份Python代码，实现删除字符串中所有元音，并以markdown格式输出这段代码。
user
```markdown
```python
def remove_vowels(s):
    vowels = 'aeiouAEIOU'
    return ''.join([char for char in s if char not in vowels])

# 示例
input_str = "Hello World"
output_str = remove_vowels(input_str)
print(output_str)
```
```
assistant