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

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -