dimanche 15 août 2021

Why this "is" not working with my if condition? [duplicate]

According to me it should print ok but its not doing as per the expectation.

x= input( "what is your name? " )
if x is 'True':
    print ('ok')
else:
    print('not ok')

Aucun commentaire:

Enregistrer un commentaire