jeudi 7 octobre 2021

How do I add a condition where if the variable exist in a csv file [closed]

in a csv file, i have a list of possible resolutions. now its giving output of "test pass" although the reso is not listed in the csv file.

Therefore, i am thinking of adding a condition that the test can only be run if the "reso" exist in csv file. how do i write the condition of this?

csv file name: PossibleResolutions.csv (containing a number of resolutions)

example:

if reso == PossibleResolution.csv and errors == '0'
print "pass"

Aucun commentaire:

Enregistrer un commentaire