Post

Python Developer
Python Developer@Python_Dv·
🤔🚀 Comment your answers below! 👇
Python Developer tweet media
English
14
7
77
7.5K
Jenny
Jenny@JennyTheDev·
@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
0
0
2
298
wizzo kaletu
wizzo kaletu@wizzo_kaletu·
@Python_Dv The output is an indentation error.... What did you just cook at print ("c") ?
English
1
0
1
199
Python Tech
Python Tech@PythonTech43716·
@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
0
0
1
302
Ehshanulla
Ehshanulla@Ehshanulla·
@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
0
0
1
290
Roby
Roby@RobyDread·
@Python_Dv the exercise is poorly formulated, the response on the console is A
English
0
0
1
411
Jay
Jay@learnaiwthme·
@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
0
0
0
326
Paylaş