Basically, put three backticks (`) around your code:
print("Hello, world!")
Raw
```py
print("Hello, world!")
```
A simple solution would be not to use variables and just put the inputs in the if statements, although this will probably look less elegant if your inputs have long messages.