diff --git a/Python/Loops.py b/Python/Loops.py index 91e4d99..6a92eb6 100644 --- a/Python/Loops.py +++ b/Python/Loops.py @@ -1,4 +1,5 @@ -n = int(input()) +if __name__ == '__main__': + n = int(input()) # Read the integer input -for i in range(n): - print i ** 2 + for i in range(n): # Loop through the range + print(i ** 2) # Print the square of i