title: Concatenating strings with ints in Python: Jack and the Beanstalk
body: <p>I am new to python and am having trouble concatenating my print string to display the data the way I want it displayed. I  know very little of python, and have been trying to do this using mostly what I know from java. An explanation of a proper format would be helpful, Thanks in advance.</p>
  
  <p>Code:</p>
  
  <pre><code>print("The Magic Beanstalk\n")
  
  height = 100
  hours = input("Enter a number of hours: ")
  
  string1 = "After 1 hour, the beanstalk was %d cm tall.", height
  
  print(string1)
  
  for i in hours:
  
      height = height*1.5 + 30
      print("After %d hours, the beanstalk was %d cm tall. ", hours, height)
  
  print("And it's still growing!!!")
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>The Magic Beanstalk
  
  
  Enter a number of hours: 3
  
  ('After 1 hour, the beanstalk was %d cm tall.', 100)
  
  After %d hours, the beanstalk was %d cm tall.  3 180.0
  
  And it's still growing!!!
  </code></pre>
  
  <p>As you can see I tried printing it out from a call to an object and a print statement directly, neither of which are giving me the result I am looking for.</p>