<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Step 1
Step1:  Step 2
Step2:  Step 3
<ASSISTANT_TASK:>
Python Code:
import requests
Explanation: Step 1: Import the requests library
End of explanation
file = requests.get('http://data.pr4e.org/romeo.txt')
Explanation: Step 2: Get the file using the URL and assign it to a suitable variable. Thanks to <a href="http://www.dr-chuck.com/">Dr Chuck</a> for the file and his awesome tutorials.
End of explanation
# Put the lines and words in suitably-named lists. Note the use of strip() to remove any pesky extra lines or spaces.
linesList = file.text.strip().split('\n')
wordsList = file.text.strip().split()
# Print the file line-by-line.
for line in linesList:
    print (line)
# Print the number of words and lines.
print ()
print ('There are', len(wordsList), 'words and', len(linesList), 'lines in the file.')
Explanation: Step 3: Process the file according to your needs. Note that the contents of your file are stored in the "text" attribute.
End of explanation
<END_TASK>