Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a6ef24a

Browse filesBrowse files
committed
feat: Improve Automaton print
1 parent 079ec7a commit a6ef24a
Copy full SHA for a6ef24a

File tree

1 file changed

+4
-0
lines changed
Filter options

1 file changed

+4
-0
lines changed

‎Automaton.py

Copy file name to clipboardExpand all lines: Automaton.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,13 @@ def print_automaton(self):
216216
-------
217217
None
218218
"""
219+
print("States")
219220
print("\tQ:", self.STATES)
221+
print("\nInitial State(s)")
220222
print("\tq0: ", self.INIT_STATE)
223+
print("\nFinal State(s)")
221224
print("\tF:", self.FINAL_STATES)
225+
print("\nTransition Function")
222226
print("\tδ:")
223227
for origin, goal in self.DELTA.items():
224228
for state in goal:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.