Skip to content

Melissa Kwan Assignments Days 1-2#28

Open
melissakwan wants to merge 17 commits intoJoeOsborn:gh-pagesfrom
melissakwan:gh-pages
Open

Melissa Kwan Assignments Days 1-2#28
melissakwan wants to merge 17 commits intoJoeOsborn:gh-pagesfrom
melissakwan:gh-pages

Conversation

@melissakwan
Copy link

Here are the assignments from days 1-2.

" if sm.is_terminal():\n",
" return []\n",
" else:\n",
" return [sofar]\n",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So close! It looks like the sense of this if is flipped. A state machine is terminal if it's accepting, i.e. if the path leading to it constituted a valid string. So I think you mean to return [sofar] if sm is terminal, and [] otherwise. Give that a try and then execute the tests in the next cell!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants