samedi 15 mai 2021

simpler way of checking multiple conditions in if statements python

if char != ' ' and char != '\n'

is there a simpler / shorter way of doing this, like something like this:

if char != (' ' and '\n') but this doesn't work apparently

Aucun commentaire:

Enregistrer un commentaire