Deadline: 2022-03-01 24:00
python3 automaton.py word
where word is the word you want to recognize.
# START
and
# STOP
so that the program accepts the words that contain even number of letters a or contain the string algp (or both)!
So e.g. 'aaalgprbbb' and 'asdaefaa' are accepted but 'aaalgbb' is not.