Write a function in Python programming language which takes a filename as a parameter and prints the first 10 lines of the file.

Write a function in Python programming language which takes a filename as a parameter and prints the first 10 lines of the file.

From the BCC Assistant Programmer (CSE) February 2021 – Written (BUET) exam, question 17 of 20.

More from this paper