Give ne back my hat!

Pythons are Go!

Having read the Glossary and the Tutorial and bits of the Language Reference, and written small scripts, I think Python is a good choice. It is built on top of C but is much higher level - best of both worlds.

from urllib.request import urlopen
with urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl') as response:
for line in response:
print(line.decode().strip())

Sweet.
Permalink , Cup 
October 12th, 2017 8:01am
Good choice although I see you are struggling with the significant whitespace.
Permalink libtard_uk 
October 12th, 2017 8:12am
It's a working script that I pasted, but it rendered without whitespace.
Permalink , Cup 
October 12th, 2017 8:20am
When you're dependent on a specific version of python, in your case 3, note that dependency in your script. Preferably with an error check or assert.

For python 2:

from urllib2 import urlopen
Permalink Reality Check 
October 12th, 2017 8:34am
ok
Permalink , Cup 
October 12th, 2017 8:47am
You just install Python and it will write the program for you.

It will not just 100% automate construction of CRUD websites ( https://news.ycombinator.com/item?id=15429616 ) but also write highly reliable and confidential AI HFT trading algorithms for you, hook itself up to Bitcoin exchanges and just ask for a bank account number to transfer the huge profits.

On occasion it'll ask you "make money?" and all you have to input is "yes". Really, Python does that for you!
Permalink Io 
October 12th, 2017 9:18am