shorten this: if char in "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz":

Walter Cruz walter.php at gmail.com
Tue Jun 24 21:45:30 CEST 2008


another way:

import string

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

[]'s
- Walter



More information about the Python-list mailing list