title: Storing filepath as variable in python
body: <p>I'm sure this is an easy question but I have searched for a while to no avail. I want to define a file path as a variable and use that variable elsewhere in my python code on Ubuntu. What I have so far is:</p>
  
  <pre><code>filefolder = '/home/Desktop/Sample Loading'
  </code></pre>
  
  <p>and I call on it later in the code as:</p>
  
  <pre><code>file = open('%f/EventLog.txt' % (filefolder), "a")
  </code></pre>
  
  <p>When I do this, I get an error saying that a float was expected and not a string. How can I get this to work?</p>
  
  <p>Thanks in advance!</p>