Alan Gilfoy wrote:
> Given a string, how would I?:

> 2. Make sure that there are no symbols (non-letter, non-number) in the  
> string, and, if one is found, remove it.
> 
> Pseudocode time, as to a potential approach-
> 
> for each character in the string:
>      if character not in  
> "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ":
>          remove it

A couple of solutions here:
http://tinyurl.com/2qqy32

except substitute ascii_letters for printable.

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to