I am new to Anaconda and Python. I tried running: help()
in Terminal and get error:
JavaScript
x
12
12
1
Windows PowerShell
2
Copyright (C) Microsoft Corporation. All rights reserved.
3
4
PS C:UsersJosepDocumentsMy DocumentsAIOPythonMyCode> python --version
5
Python 3.8.5
6
PS C:UsersJosepDocumentsMy DocumentsAIOPythonMyCode> help()
7
**At line:1 char:6**
8
**+ help()**
9
**An expression was expected after '('.**
10
**+ CategoryInfo : ParserError: (:) [],** **ParentContainsErrorRecordException**
11
**+ FullyQualifiedErrorId : ExpectedExpression**
12
I also tried adding the path to Python.exe to end of my Path statement and restarting (still get error). c:usersjosepanaconda3python.exe
Hoping you can advise what I need to do to resolve this. Thanks.
Advertisement
Answer
help()
is used inside the Python interpreter, like
JavaScript
1
3
1
>>> help()
2
help>
3
Edit:
You enter the Python interpreter by first typing python3
. Then you will be prompted with the >>>
.