dimanche 8 novembre 2020

After executing the list remains empty even upon giving all instructions? [duplicate]

a = ':D'
total = []
if (':' or ';')  and (')' or 'D') in a:
total.append(a)
print (total)

This is not reading the code after and. Why?

Aucun commentaire:

Enregistrer un commentaire