LessonAbout 7 minLesson languageEnglishதமிழ் (Tamil)हिन्दी (Hindi)മലയാളം (Malayalam)తెలుగు (Telugu)ಕನ್ನಡ (Kannada)বাংলা (Bengali)मराठी (Marathi)ગુજરાતી (Gujarati)ਪੰਜਾਬੀ (Punjabi)Chapter 12 · Lesson 2 of 502. Line by line, with withwith open() closes the file for you. Loop over the file to get one line at a time, and strip() the new line off the end.