Post

@Python_Dv D) A\nC
x = 5, so x > 3 is True → prints "A"
print("C") is outside the if/else block, so it runs regardless.
The sneaky indentation trap strikes again.
English

@Python_Dv The output is an indentation error....
What did you just cook at print ("c") ?
English

@Python_Dv D is right answer
A
C
Simple use of if and else condition
Here if condition is true then output will A then else condition is false, but the last print("C") will work and print by default separator is change the line so out put will be
A/nC
English

@Python_Dv x > 3 → True, so "A" is printed
The else block is skipped
print("C") is outside the if–else, so it always runs
output
A
C
English

@Python_Dv the exercise is poorly formulated, the response on the console is A
English

@Python_Dv The output is:
A
Because x = 5 and 5 > 3 is True, Python enters the if block and prints "A".
The else block is completely skipped, and since print("C") is inside the else block (same indentation as print("B")), it never runs.
English









