the-honk/python/pythonchallenge.com/13 - Disproportional.py

8 lines
356 B
Python
Raw Permalink Normal View History

2024-10-09 17:02:28 +00:00
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!!!