I am trying to create a program that will read in a text file and print a specific word number on a specific line given by the user. I am not having any issues with the prompts, I am just having issues getting the specific word. I know that I will be using readlines() and split(), it’s just putting them together that I am having a hard time grasping. A nested for loop? Is one for loop sufficient?
How do I combine printing the line number and word number?
This should get you started. You stated that you already got the arguments, so you should be able to modify this as you like.
If you only need word
wat lineland you can do