shorten this: if char in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz":

Walter Cruz walter.php at gmail.com
Tue Jun 24 15:45:30 EDT 2008


another way:

import string

if char in string.ascii_letters:
  print('hello buddy!')

[]'s
- Walter



More information about the Python-list mailing list