0

The individual conditions are satisfied as checked by print statement, but when I consolidate all conditions in my if statement, the does'nt seem to print the name. Any ideas?, is there something wrong with my if statement?enter image description here

1 Answer 1

1

One possible explanation: the database values are strings, not integers. From the csv.reader doc

Each row read from the csv file is returned as a list of strings. No automatic data type conversion is performed unless the QUOTE_NONNUMERIC format option is specified (in which case unquoted fields are transformed into floats).

Please post text as formatted text, not images.

1
  • It was exactly that. Thankyou, and I will post formatted text from next time Commented Dec 27, 2022 at 1:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .