Dfs Algorithm Python Binary Operators And Numbers