Generates random Python functions using Markov chains
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmps_and_ifs.py 179 B

1234567891011121314
  1. def f1(a):
  2. return a < 8
  3. def f2(a):
  4. if a > 5:
  5. return True
  6. return False
  7. def f3(a):
  8. if a <= 20:
  9. return True
  10. return False
  11. corpus = [f1, f2, f3]