I'm trying to make a program to write a file from user-input, but for some reason when I use \n in input it doesn't work as a newline, it's considered a string instead.
Code: (at the moment the program just prints the user-input)
print(input("> "))
User-input:
"\nHello\nWorld!\n"
Expected output:
Hello
World!
Output:
\nHello\nWorld!\n