Write a python code that includes two basic functions like as below: 1) Create a class named “Machine”. 2) Create a init__(self) function that include five empty variables (states Q, symbols 2, transition-function 8, initial state 90, final state qr) under the machine the class. 3) Create a description(self) function that prints all the five tuples on the machine. Show transcribed image text Write a python code that includes two basic functions like as below: 1) Create a class named “Machine”. 2) Create a init__(self) function that include five empty variables (states Q, symbols 2, transition-function 8, initial state 90, final state qr) under the machine the class. 3) Create a description(self) function that prints all the five tuples on the machine.
Expert Answer
Answer to Write a python code that includes two basic functions like as below: 1) Create a class named “Machine”. 2) Create a init…