title: Print the final value of a loop variable in python. Is it possible?
body: <p>In Python I want to see if I can print the final value of a variable, for example, X, y times as a string.  If program is:</p>
  
  <pre><code>&gt;&gt;&gt;y=int(input("Enter no. of times x should be printed"))
     z=int(input("Enter value of x"))       
     x=0
  for a in range(1,z+1):
      x=x+1
      print(value of x*y times as a string)
  </code></pre>
  
  <p>Can I print the value of x which is z=4, therefore x is also 4, y times(eg.y=4) like:4444</p>
  
  <p>(It is not a duplicate of question"Python - Print a string a certain number of times" as it is not simply printing an inputted string a number of times. I am trying to find how to print the end result of a loop a no. of times) </p>