2 ms·
I have the proper Enterprise version: def increment(a): import urllib2 url = "http://www.html2xml.nl/Services/Calculator/Version1/Calculato
by icebraining 15y ago
I have the proper Enterprise version:
def increment(a):
import urllib2
url = "http://www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx/Add?a=%d&b=1" % a
result = urllib2.urlopen(url).read()
from xml.dom.minidom import parseString
result = parseString(result)
return int(result.getElementsByTagName('int')[0].childNodes[0].data)
- namank 15y agoI'm pretty sure that's not a valid solution. Its the same as using Math.sum(). While it evaluates your resourcefulness, the point of the question, I think, is to figure out your knowledge and creative thinking