Complete the code to count the number of lines in a file named 'file.txt'.
wc [1] file.txtThe -l option tells wc to count lines in the file.
Complete the code to count the number of words in 'document.txt'.
wc [1] document.txtThe -w option counts the words in the file.
Fix the error in the command to count characters in 'notes.txt'.
wc [1] notes.txtThe -m option counts characters (not bytes). Using -c counts bytes, which may differ if file has multibyte characters.
Fill both blanks to count lines and words in 'story.txt'.
wc [1] [2] story.txt
Use -l for lines and -w for words. Both options can be combined.
Fill all three blanks to create a dictionary comprehension that maps each filename to its word count, only if the word count is greater than 100.
result = [1]: [2] for [3] in files if [2] > 100}}
This comprehension maps each file to its word count using wc -w file, filtering counts greater than 100.