Categories
Is it possible to write the condition check string shorter?
Is it possible to somehow simplify the following code:
if csv_tr_opcode == 2 and one_row.opcode == 3 or one_row.opcode == 6:
Answer the question
In order to leave comments, you need to log in
if all([csv_tr_opcode == 2, one_row.opcode in (3, 6)]):
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question