Question: In PYTHON please! The FSA on the next page has an alphabet of Lower Case letters, blank and =. These are the only correct characters.
In PYTHON please!

The FSA on the next page has an alphabet of Lower Case letters, blank and =. These are the only correct characters. It recognizes Identifiers (strings of lower-case letters), the reserved words if and in. It also recognizes the symbols = and ==. Write code in your favorite language to implement this FSA. The input is a string or character array. The output should be a sequence of tokens. For example: INPUT: if iffy =abc==in= OUTPUT if Identifier = Identifier == in = (Note, in this example == is a double = with no space. The typeface appears to add a space)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
