fork download
  1. vowels = "a e i o u".split()
  2. start_consonants = "b d f g h j k l m n p r s t v w z ch th sh".split()
  3. end_consonants = "b d f g l m n p r s t v x z ck tch th sh".split()
  4. numerics = "0 1 2 3 4 5 6 7 8 9".split()
  5.  
  6. def f(i):
  7. for n in numerics:
  8. if len(i) == 9:
  9. return i+n
  10. else
  11. return f(i+n)
  12.  
  13. for c1 in start_consonants:
  14. for c2 in vowels:
  15. for c3 in end_consonants:
  16. print(f(c1+c2+c3))
Compilation error #stdin compilation error #stdout 0s 9024KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/py_compile.py", line 117, in compile
    raise py_exc
py_compile.PyCompileError:   File "prog.py", line 10
    else
       ^
SyntaxError: invalid syntax

stdout
Standard output is empty