Python function

1.Use the Python regular expression library re to create a Python function that decides whether its text input is a valid Python function header with a single parameter that does not take a default value. For example, def f(n) : is one such valid header, but def (f:)=n is not.

  1. ∑ = {a,b}, L = {w : #a(w) % 2 = 0 and #b(w) % 3 = 0}. Use JFLAP to construct an FSM that recognizes L

Sample Solution

ACED ESSAYS