Computer Science > Computational Thinking And Programming 2 > Data File Handling
Write a Python function that displays all the lines ending with a dot (.) from a text file "Colors.txt". For example, if the file contains: White is a mix of seven colors. What are these seven colors ? VIBGYOR - violet, indigo, blue, green, orange and red. When we mix all these colors we just get one light which is the WHITE light.
Then the output should be : White is a mix of seven colors. VIBGYOR - violet, indigo, blue, green, orange and red.
(Hint: You will have to ignore trailing white spaces to check the last character)
Current Question
Community Stats
Track Your Progress
Sign up to save your practice progress, add favorites, and get personalized insights.

Edvaya Target
Practice Questions & Mock Tests
Improve your problem-solving skills with our extensive collection of practice questions including PYQs, NCERT Textbooks, NCERT Exemplars and Mock Tests. Get instant feedback and detailed solutions to enhance your preparation.
