Python Challenge Solutions
    Level 0
    Level 1
    Level 2
    Level 3
    Level 4
    Level 5
    Level 6
    Level 7
    Level 8
    Level 9
    Level 10

Python Challenge - Level 13


phone that evil

Key 5 is clickable,

              XML error: Invalid document end at line 1, column 1


We can use xmlrpc module to talk to it:

>>> import xmlrpc.client
>>> conn = xmlrpc.client.ServerProxy("")
>>> conn
<ServerProxy for>
>>> conn.system.listMethods()
['phone', 'system.listMethods', 'system.methodHelp', 'system.methodSignature', 'system.multicall', 'system.getCapabilities']

phone seems to be the method we should call. Get more info on how to use it:

>>> conn.system.methodHelp("phone")
'Returns the phone of a person'
>>> conn.system.methodSignature("phone")
[['string', 'string']]

So it takes a string and returns a string, the input should be the name and the output should be the number:


If you do not know, 555 basically means "fake phone numbers" in US... The key is "italy".

Put Everything Together

import xmlrpc.client

conn = xmlrpc.client.ServerProxy("")

Next Level