print(s[-1]>'('and s.count('(')==s.count(')')and"Yes"or"No")
s is a string on the above line. Thank you
Aucun commentaire:
Enregistrer un commentaire