Python user input file path
<p>I am working on an easy project which requires user input a path for program and goes to this path
Here, I Worte on OSX: </p>

<pre><code>from pathlib import Path

def main():
    user_input_path = Path(input())
</code></pre>

<p>And debug like this</p>

<pre><code>&gt;&gt;&gt; /Users/akrios/Desktop/123
SyntaxError: invalid syntax
</code></pre>

<p>The <code>input()</code> function reads in the input, and then tries to parse it as if it's something in Python notation. Instead, use the <code>raw_input()</code> function, it does not parse anything and returns the input as a string.</p>

python