python - Can I combine multiple for loops? -


i have following code, can please me make more elegant:

for hex in numdb:     print_file1(hex, output_file1)  hex in numx1:     print_file1(hex, output_file2)  hex in numac:       print_file2(hex, output_file2) 


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -