I am new to Anaconda and Python. I tried running: help() in Terminal and get error:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:UsersJosepDocumentsMy DocumentsAIOPythonMyCode> python --version
Python 3.8.5
PS C:UsersJosepDocumentsMy DocumentsAIOPythonMyCode> help()
**At line:1 char:6**
**+ help()**
**An expression was expected after '('.**
**+ CategoryInfo : ParserError: (:) [],** **ParentContainsErrorRecordException**
**+ FullyQualifiedErrorId : ExpectedExpression**
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
>>> help() help> ...
Edit:
You enter the Python interpreter by first typing python3. Then you will be prompted with the >>> .