while(str[i] in [' ', '\r', ...])

rather than having to do each test individually.

Reply via email to