Hi I just started learning programming and tried some looping with file management. I am not sure how to join the string after looping can someone give me some pointers how can i go about doing it? Thanks!
This is my code
import string testFile = open("test.txt", "r").readlines() for line in inFile: for word in line.split(): line = word.capitalize() print line