Computer Science > Computational Thinking And Programming 2 > Data File Handling
Write a Python function that displays all the lines containing the word 'vote' from a text file "Elections.txt". For example, if the file contains :
In an election many people vote to choose their representative. The candidate getting the maximum share of votes stands elected. Normally, one person has to vote once. The process of voting may vary with time and region.
Then the output should be :
In an election many people vote to choose their representative. Normally, one person has to vote once.
Keep Practicing
Edvaya Target
Board & Competitive Exams Made Easy
Edvaya Target is built for students preparing for JEE (Main & Advanced), NEET UG, and Board Exams (CBSE, ISC & State Boards) — using a practice-first approach that actually works.
Current Question
Community Stats
Track Your Progress
Sign up to save your practice progress, add favorites, and get personalized insights.

