-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Melissa Kwan Assignments Days 1-2 #28
base: gh-pages
Are you sure you want to change the base?
Conversation
Update for Day 3
" if sm.is_terminal():\n", | ||
" return []\n", | ||
" else:\n", | ||
" return [sofar]\n", |
There was a problem hiding this comment.
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!
Updates for Monday 7/18
Here are the assignments from days 1-2.