f=lambda x:all([x[0]=="#",x[1].isalpha(),x[2:].isalnum()]) f('#')
Standard input is empty
Standard output is empty
Traceback (most recent call last): File "prog.py", line 2, in <module> File "prog.py", line 1, in <lambda> IndexError: string index out of range