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
- Previous: What will be the output after running all the following queries? CREATE Table t( val INT ); INSERT INTO t(val) values…
- Next: Complete the following java program. class A{ int alpha; int beta; public A(int alpha, int beta){ this.alpha = alpha; this.beta = beta; }…
- All questions in BCC Assistant Programmer (CSE) February 2021 – Written (BUET)