Answer to Question #3378 in Python for mukunda

Question #3378
Write a python program to open the “rgukt.txt” file and print the contents of the file on to the console.
1
Expert's answer
2011-08-02T14:05:59-0400
for s in open ("rgukt.txt"):
if s[-1] == '\n': s = s[:-1]
print(s)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS