Computer Science > Computational Thinking And Programming 2 > Data File Handling
A text file
song.txtWhat will be the output of the following code snippet?
f1 = open("song.txt", "r") s1 = f1.read(5) s2 = f1.readline(4) s3 = f1.read(3) print(s1, s3, sep="#")
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.

