Line number

Report a typo

Read the file sample.txt and print the number of lines that this file has.

Don't forget to close the file!

Write a program in Python 3
# read sample.txt and print the number of lines
___

Create a free account to access the full topic