For this task, you are to write a simple phyton program to read
data from a text file, reorder the data, and then write the
reordered data into a new file.
Instructions
For example, the first question in the input file is
And here is what it might look like, for example, after
reordering the choices for each question
Requirements
To achieve full marks for this task, you must follow the
instructions above when writing your solution. Additionally, your
solution must adhere to the following requirements:
input_file.txt x 1 1. What is the capital city of Australia? 2 (a) Canberra 3 (b) Perth 4 (c) Sydney 5 (d) Melbourne 6 7 2. Australia is 8 (a) the largest continent 9 (6) an island continent 10 (c) the second largest continent 11 12 3. Which of the following is not an Australian city? 13 (a) Hobart 14 (6) Brisbane 15 (c) Auckland 16 (d) Darwin 17 18 4. How many states in Australia? 19 (a) 3 20 (6) 4 21 (C) 5 22 (d) 6 23 (e) 7
For this task, you are to write a simple phyton program to read data from a text file, reorder the data, and then write
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
For this task, you are to write a simple phyton program to read data from a text file, reorder the data, and then write
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!