import requests
import json
def api(url):
	request_data = requests.get(url)
	status_code = request_data.status_code
	all_data = request_data.json()
	  

	return all_data


url = "http://www.geognos.com/api/en/countries/info/all.json"
print(api(url))
	
@@ -35,16 +35,110 @@
 i(url):%0A
+%09%22%22%22%0A%09This function consumes an api for word's countries names and their capital cities %0A%09%22%22%22%0A
 %09request
@@ -238,12 +238,8 @@
 on()
-%0A%09  
 %0A%0A%09r
@@ -254,17 +254,16 @@
 l_data%0A%0A
-%0A
 url = %22h

add comments