I'm using Python 3.5.2.
I'm a beginner with Python and I'm trying to get a path from an input.
However I get this error and I don't understand it.
Traceback (most recent call last):
File "./install.py", line 12, in <module>
path = input("Path: ")
File "<string>", line 1
/home/nicolas/test.txt
^
SyntaxError: invalid syntax
Source:
#! /usr/bin/python
# -*- coding: utf8 -*-
import os
import sys
import time
print('---- Test ----- \n')
time.sleep(1)
path = input("Path: ")
print(path)
Thank's a lot for help!