Question

What is the output for the below code MyList = ["New York", "London", "Paris", "New Delhi"] MyFile=open('output.txt','w')   for element in MyList:     print >>MyFile, element MyFile.close()

A New York Paris New Delhi London
B London Paris New Delhi New York
C New York London Paris New Delhi
D None of these
E All of these
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)