[Chicago] Python in the browser IDE
Randy Baxley
randy7771026 at gmail.com
Fri Mar 28 21:36:28 CET 2014
Having a lot of fun writing little programs like:
x = 5
print(1 < x < 10)
print(10 < x < 20 )
print(x < 10 < x*10 < 100)
print(10 > x <= 9)
print(5 == x > 4)
import urllib
from xml.etree.ElementTree import parse
def monitor():
p = urllib.urlopen('
http://chicago.transitapi.com/bustime/map/getStopPredictions.jsp?stop=5623&route=80
')
pdoc = parse(p)
for pre in pdoc.findall('pre'):
vid = pre.findtext('v')
eta = pre.findtext('pt')
print 'Bus number ', vid, 'will arrive in ', eta
print '---'
print '_'*10
import time
count = 0
while count < 60 :
monitor()
count = count + 1
time.sleep(60)
Someday I may also learn a framework but for now I am wondering if there is
a browser ide that I could just and paste to then share the link which I
could also run from safari on my phone?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20140328/c1470a46/attachment.html>
More information about the Chicago
mailing list