diff --git a/automata/deterministic_automaton.py b/automata/deterministic_automaton.py index 05efaa2..364d059 100644 --- a/automata/deterministic_automaton.py +++ b/automata/deterministic_automaton.py @@ -114,6 +114,6 @@ if __name__ == '__main__': AUTOMATON.mark_as_initial(INITIAL_STATE) AUTOMATON.mark_as_final(FINAL_STATE) - print AUTOMATON.accepts("x") # wypisze True - print AUTOMATON.accepts("") # wypisze False - print AUTOMATON.accepts("ab") # wypisze False + print(AUTOMATON.accepts("x")) # wypisze True + print(AUTOMATON.accepts("")) # wypisze False + print(AUTOMATON.accepts("ab")) # wypisze False