Does anyone else not find the fun in programming...?

Jeff Epler jepler at unpythonic.net
Tue Jan 13 22:01:57 CET 2004


>>> "fun" in "programming"
0  # DANGIT
>>> "programming".find("fun")
-1 # ARGARGHARGH
>>> "programming".index("fun")
ValueError: substring not found in string.index # F***!
>>> assert "programming" is "fun"
AssertionError   # I'm going home

Jeff




More information about the Python-list mailing list