the-honk/python/pythonchallenge.com/13 - Disproportional.py
2024-10-09 18:02:48 +01:00

7 lines
356 B
Python

import xmlrpc.client
connection = xmlrpc.client.ServerProxy('http://www.pythonchallenge.com/pc/phonebook.php')
print(connection.system.listMethods()) # methods
print(connection.system.methodHelp('phone')) # what does phone do?
print(connection.system.methodSignature('phone')) # takes a string, returns a string
print(connection.phone('Bert')) # italy!!!