请将以下代码改写为符合PEP8风格的Python代码：

下面是我写的代码，能帮我检查并改写为PEP8风格吗？

message = "Hello! Please specify whether you would like the program to run in manual or automatic mode."

run_mode = input(message)

print("You have selected: ", run_mode)

if run_mode.lower() == "manual":
    manual_mode()
elif run_mode.lower() == "automatic":
    automatic_mode()
else:
    print("Invalid mode selected. Please choose either 'manual' or 'automatic'.")


def manual_mode():
    print("You are now in manual mode.")

def automatic_mode():
    print("You are now in automatic mode.")
user
```python
message = "Hello! Please specify whether you would like the program to run in manual or automatic mode."

run_mode = input(message)

print("You have selected:", run_mode)

if run_mode.lower() == "manual":
    manual_mode()
elif run_mode.lower() == "automatic":
    automatic_mode()
else:
    print("Invalid mode selected. Please choose either 'manual' or 'automatic'.")


def manual_mode():
    print("You are now in manual mode.")


def automatic_mode():
    print("You are now in automatic mode.")
```
assistant