title: How do I name a file by a variable name in Python?
body: <p>I want to take as input the name of a network, and then I want a file to be saved using the same name as the variable. Is there a way to take a variable and then name a file the variable name?</p>
  
  <p>For instance, say I have the network called facebook saved as a dictionary. Can I somehow take that variable name and use it as a filename?</p>
  
  <p>This is all in Python.</p>
  
  <p>Thank you!</p>