Hi, I am completely new to programming and am trying textmate out based on some reviews I've read. I'm learning python as my first language. <br><br>My question is this: I am writing basic small programs in python and when I run the program to see if it works, even if it works properly it always finishes the output with the last data that I enter into it.<br>
<br>For example, if I enter:<br><br>n = input("Please enter a whole number: ")<br>fact = 1<br>for factor in range(n, 1, -1):<br>    fact = fact * factor<br><br>print "The factorial of", n, "is", fact<br>
<br>When I run the program (with an input of '10'):<br><br>'   Please enter a whole number: The factorial of 10 is 3628800<br>10'<br><br>When I run the program in IDLE I don't get the extra output. <br>
<br>Thank you.<br><br><br><br>