Assume that the file data.txt exists and contains several lines of text. Write a
short program using the while loop that displays each line in the file.
Revise the program that you wrote for Checkpoint 6.14to use the for loop
instead of the while loop.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here