import http.client #they are libraries
import json

headers = {'User-Agent': 'http-client'}

#I have change the api of the teacher by my api
conn = http.client.HTTPSConnection("api.github.com")
conn.request("GET", "/orgs/elastic/repos", None, headers)
r1 = conn.getresponse()
print(r1.status, r1.reason)
repos_raw = r1.read().decode("utf-8")
conn.close()

repos = json.loads(repos_raw)
repo = repos[0]
for elem in repos:
    if elem == "full_name":
	    print(elem                                                                                       )
print("Total number of repos is", len(repos))                             
print("The owner of the first repository is", repo['owner']['login'])