What will be the content of file shop.txt after executing the shown Python code that writes Apple, Orange, Banana and then swaps the first and third lines?
Answer options
A
Banana
Orange
Apple
B
Apple
Banana
Orange
C
Orange
Banana
Apple
D
Banana
Apple
Orange
Correct answer: Banana Orange Apple
Explanation
The code swaps content[0] and content[2], so Apple and Banana exchange positions while Orange remains in the middle.