I'm new to python and I can't get instance of the class below Which is in a python file named "util.py":
...
class Stack:
def __init__(self):
self.list = []
...
And I'm trying to construct an instance of the aforementioned class in another python file named "Search.py";Here's the code :
def depthFirstSearch(problem):
from util import Stack
path = [] #list used to return the desired actions
DFSstack = Stack()
There's really nothing more in my code believe me!:) But I get this error : TypeError: 'NoneType' object is not iterable
Help me out please!