Question: The purpose of the following Python program is to ______________________ c = open(c, 'w') r = input(--> ) while r != 'n': a = input(N:
The purpose of the following Python program is to ______________________
c = open("c", 'w')
r = input("--> ")
while r != 'n':
a = input("N: ")
n = input("C: ")
b = input("B: ")
c.write(a+": "+n+": "+b+" ")
r = input("--> ")
c.close()
| keep swapping a, n and c until they are in the correct order | ||
| read keyboard input which is then written as records to file until the user says 'n'. | ||
| read data from a file | ||
| process a list sequence |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
