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

8 lines
356 B
Python
Raw Normal View History

2021-06-12 18:58:06 +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!!!