title: Basic Printing with Elixir - IO.puts error: ** (ArgumentError) argument error (stdlib) :io.put_chars(#PID
body: <p>Here's the program I'm trying to run for Elixir 1.0.3: </p>
  
  <pre><code>IO.puts "putstest"
  
  div2 = fn inputnum -&gt;
    [:a, inputnum/4, inputnum/7, inputnum/5.0, inputnum/7, inputnum*88]
  end
  
  myoutput = div2.(300.0)
  
  IO.puts myoutput
  </code></pre>
  
  <p>I added the :a atom in case Elixir was doing some sort of implicit casting. </p>
  
  <p>I'm sort of new to Elixir. I keep getting the following error when I run the code above by <code>$ elixir putztestzorz.exs</code>: </p>
  
  <pre><code>putstest
  ** (ArgumentError) argument error
      (stdlib) :io.put_chars(#PID&lt;0.24.0&gt;, :unicode, [[:a, 75.0, 42.857142857142854, 60.0, 42.857142857142854, 2.64e4], 10])
      (elixir) lib/code.ex:316: Code.require_file/2
  </code></pre>
  
  <p>I checked <a href="https://hexdocs.pm/elixir/IO.html" rel="nofollow noreferrer">the IO documentation</a>, but neither <strong>IO.stream</strong> (Converts the io device into a IO.Stream, changed the last line to <code>IO.stream output</code>) nor <strong>IO.write</strong> (Writes the given argument to the given device, changed the last line to <code>IO.write :stdout, output</code>) seem to do the trick.</p>
  
  <p>I don't want to keep just guessing, here, and I seem to not quite understand what the function is supposed to be doing.</p>
  
  <p>Is there an analogue to Python's <code>print()</code> that will just, well, <em>work</em>? </p>
  
  <p>Do I need to cast the list, or something? </p>
  
  <p>I'm probably missing something really simple, here, but I don't want to just guess my way down the list of IO handling functions. </p>
  
  <p>(P.S. The documentation keeps talking about a <code>Process.group_leader</code>. I don't plan to do much with this yet, but is there a way to put it in context for this sort of thing? I keep imagining <a href="http://i2.kym-cdn.com/photos/images/facebook/000/037/162/04.jpg" rel="nofollow noreferrer">Red Leader</a> from Star Wars.)</p>