Question

Predict the output for below code in python X=true Y=false Z=false if not X or Y : print(“first case”) elif not X or Y or not Y and X print(“second case”) else : print(“no case”)

A first case
B second case
C no case
D second case no case
E error
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)