Fix your indentation and make sure your program flows through if
statements correctly.
Even first 2 lines should throw error now:
def main():
cmd = (raw_input('#>>'))
The correct notation is:
def main():
cmd = (raw_input('#>>'))
More Related Contents:
- Command not working in an interpreter I made
- In Python interpreter, return without ” ‘ “
- Python Compilation/Interpretation Process
- How do I add tab completion to the Python shell?
- How to fix column calculation in Python readline if using color prompt
- In the Python interpreter, how do you return a value without single quotes around it?
- How to repeat last command in python interpreter shell?
- Do comments slow down an interpreted language?
- How can I add interpreter to PyCharm?
- How do I get the current depth of the Python interpreter stack?
- Source Code is the output in Python [closed]
- Should I use ‘has_key()’ or ‘in’ on Python dicts?
- Merge pandas dataframes where one value is between two others [duplicate]
- Lists in ConfigParser
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- How to add multiple annotations to a barplot
- How to run python scripts using gimpfu from command line?
- Best way to determine if a sequence is in another sequence?
- Move Character with Vector
- Django formsets: make first required?
- Clustering text documents using scikit-learn kmeans in Python
- Google Groups API add Member
- What python libraries can tell me approximate location and time zone given an IP address?
- In matplotlib, how can I plot a multi-colored line, like a rainbow
- Access is denied when trying to pip install a package on Windows
- I’m trying to use python in powershell
- Grouped Bar graph Pandas
- Limit Python VM memory
- Python: type-hinting a classmethod that returns an instance of the class, for a class that is inherited
- list comprehension with multiple conditions (python)