Hey there Shevangae Singh
See according to your code , num has the value of 7.
The first condition is that if num is greater than 3 then print 3. Since 7 is greater than 3, 3 will be printed.
The second condition is that if num is less than 5 then print 5. But since 7 is greater than 5, not lesser, 5 is not printed.
The third condition is that if num is equal to 7 then print 7. Since in the first line, you assigned the value of 7 to num, the condition is satisfied and 7 is printed.
This would be the case but since everything is indented, when the second condition failed, the code never went to the third condition.
When we intend, we imply that the indented statements are to be followed only if the if statement is true.
Hence the final output is 3.
Hope it helps.