Ask coding questions

← Back to all posts
Tash - Shell
dObbOb11 (13)

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>
    main()
  File "main.py", line 12, in main
    query = input(pathAb + "$ ")
UnboundLocalError: local variable 'pathAb' referenced before assignment
Comments
hotnewtop
Wumi4 (531)

You haven't assigned a value for pathAb yet.