I have been staring at this for over an hour trying to figure out where my mistake is. I keep getting an attribute error: ‘function’ object has no attribute ‘is_empty’ on line 46. I have compared it with other codes that people on here have said works and everything appears to be the same. Here is my code: https://gist.github.com/243a975cf784f41919a9fb62fc14efab
to_stack = get_input
looks a bit iffy.
to_stack is not a Stack instance, so cannot access its methods.
I found it and got it working. Thanks for the help