For this Question: Given an integer N, your task is to print all the even integer from 1 to N.<b>User task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the functions <b>For_Loop()</b> that take the integer n as a parameter.

</b>Constraints:</b>
1 <= n <= 100

<b>Note:</b> 
<i>But there is a catch here, given user function has already code in it which may or may not be correct, now you need to figure out these and correct them if it is required</i>Print all the even numbers from 1 to n. (print all the numbers in the same line, space-separated)Sample Input:-
5

Sample Output:-
2 4

Sample Input:-
6

Sample Output:-
2 4 6, I have written this Solution Code: def For_Loop(n):
    string = ""
    for i in range(1, n+1):
        if i % 2 == 0:
            string += "%s " % i
    return string

, In this Programming Language: Python, Now tell me if this Code is compilable or not?