Comparing values of each integer within a range
<pre><code>n= int(raw_input(" Enter a number"))
i = 0 
length = 0 
maxLength = 0 

for i in range(1, n - 1):
              if length &gt; maxLength:
              maxLength = length 
              i = i + 1
*run other program which gets value*
code 
code 
code 
print i 
print maxLength 
</code></pre>

<p>So, what I have so far is a program that of course gets a value, what I need to do with this value, is create a loop that will compare the value of each integers value within range of integers between 1 and the user input or "n", than output the integer with the highest value, and what that value is within the range.</p>
