Ask coding questions
I am trying to create a shell.
But I get an error that I tried to debug by making pathgAb a global variable, but I still get the error.
Here is the error:
Traceback (most recent call last):
File "main.py", line 43, in <module>
File "main.py", line 12, in main
query = input(pathAb + "$ ")
UnboundLocalError: local variable 'pathAb' referenced before assignment
You haven't assigned a value for pathAb yet.