<AptiCode/>

Question 409: What will be the output of the following code?x = 10 y = 5 if x > y: print("x is greater") else: print("y is greater")

tcs
wipro
infosys
general
aptitude
conditional-statements
python-programming

The code compares the values ofxandyusing the>(greater than) operator. Sincexis greater thany, the code inside theifblock will be executed, printing "x is greater."