M HYPE SPLASH
// news

Continue command on a new line

By Abigail Rogers

To improve the readability of my code, I want to go to a new line in the code but I do not want the compiler to treat is as a different line of command. How do I do this?

python file_a.py file_b.py
file_c.py file_d.py
2

1 Answer

You do this by escaping the newline character, add a backslash \ directly before the line break:

python file_a.py file_b.py \
file_c.py file_d.py

You may indent the second line to further improve readability:

python file_a.py file_b.py \ file_c.py file_d.py
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy