has been filled from a for_loop, and I'm gonna write the dictionary in to text file like this: 
                  
                  
                  
                  
                  
                  with open('poets_glossary.py', 'w') as file:
                  
                  
                      file.write(str(poets_glossary))
                  
                  
                  
                  
                  
                  how do I tell interpreter to write each pair in a seperated line?
                  
                  
                
import json with open...: file.write(json.dumps(poets_glossary, indent=2))
Обсуждают сегодня