Create a function to fetch data from a web page using Python.
http://www.example.com
import requests

def fetch_data(url):
    response = requests.get(url)
    return response.text

fetched_data = fetch_data('http://www.example.com')