Skip to content

Instantly share code, notes, and snippets.

@mkaz mkaz/in-space.py
Created Feb 25, 2019

Embed
What would you like to do?
People currently in Space
#!/usr/bin/env python3
""" How many people currently in space """
import json, requests, sys
response = requests.get('http://api.open-notify.org/astros.json')
data = response.json()
print(data["number"])
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.