"""Convert to and from Roman numeralsThis program is part of "Dive Into Python", a free Python book forexperienced programmers. Visit http://diveintopython.org/ for thelatest version."""__author__="Mark Pilgrim (mark@diveintopython.org)"__version__="$Revision: 1.2 $"__date__="$Date: 2004/05/05 21:57:20 $"__copyright__="Copyright (c) 2001 Mark Pilgrim"__license__="Python"#Klasy wyjątkówclassRomanError(Exception):passclassOutOfRangeError(RomanError):passclassNotIntegerError(RomanError):passclassInvalidRomanNumeralError(RomanError):passdeftoRoman(n):u"""konwertuje liczbę całkowitą na jej reprezentację rzymską"""passdeffromRoman(s):u"""konwertuje zapis rzymski na liczbę całkowitą"""pass