Im trying to read lines from a text file and print the number of the line and the line next to the number
Ive tried using enumerate but I want to find another way of doing it
the file contains :
pizza hello goodbye
I want to print to the screen
1-pizza 2-hello 3-goodbye