Skip to main content
deleted 2 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

Python 3Python 2.7 + xkcd, 55 bytes

xkcd is a third-party Python package. In Python, there is a package for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

Python 3 + xkcd, 55 bytes

xkcd is a third-party Python package. In Python, there is a package for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

Python 2.7 + xkcd, 55 bytes

xkcd is a third-party Python package. In Python, there is a package for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

Corrected a minor issue
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

Python 3 + xkcd, 55 bytes

xkcd is a third-party Python package. In Python, there is a modulepackage for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

Python 3 + xkcd, 55 bytes

xkcd is a third-party Python package. In Python, there is a module for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

Python 3 + xkcd, 55 bytes

xkcd is a third-party Python package. In Python, there is a package for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

added 2 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214

Python 3 + xkcd, 55 bytes

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

xkcd is a third-party Python package. In Python, there is a module for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

Python 3 + xkcd, 55 bytes

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

xkcd is a third-party Python package. In Python, there is a module for everything!

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

Python 3 + xkcd, 55 bytes

xkcd is a third-party Python package. In Python, there is a module for everything!

lambda n:[xkcd.getComic(n).altText][n==859]
import xkcd

For 404: urllib2.HTTPError: HTTP Error 404: Not Found

For 859: IndexError: list index out of range

added 70 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
deleted 45 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
deleted 11 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
deleted 17 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
Post Undeleted by Mr. Xcoder
added 36 characters in body
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
Post Deleted by Mr. Xcoder
Post Undeleted by Mr. Xcoder
Post Deleted by Mr. Xcoder
Source Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading