Define a python function that can read text file from a given URL


Topic: Define a python function that can read text file from a given URL

Solution

import requests
def read_data(url):
    data = requests.get(url).text
    return data



List all Python Programs