Allow me to explain the above scene through the magic of Python-Vision:
>>> wizzard = Wizzard()
>>> wizzard.rings
['ring of teleport control', 'ring of slow digestion']
>>> wizzard.put_on_ring(wizzard.rings[0])
Okely Dokely
>>> wizzard.stumble_into_level_teleport_trap()
which level would you like to go to today, wizzard? 50
Okely Dokely
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
Whoops, you are being attacked!
WYLYPI?
>>>
for the record, I didn't get as far as level 50, but I got far enough.