Skip to content

Instantly share code, notes, and snippets.

@mkaz
Created February 25, 2019 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkaz/369bb244adc6ede0ff5d4148006a42fe to your computer and use it in GitHub Desktop.
Save mkaz/369bb244adc6ede0ff5d4148006a42fe to your computer and use it in GitHub Desktop.
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