How to make a condition that accepts only in a loop strings that have '_' only two times.
a = ['q_s_e','s_e_v_e','s_v']# many more like these
in the above list only the fist item should used in the loop:
for i in a: if '_' in i: ...
this takes everything.
How to do it?
omri_saadon answered question
Have an answer?