def format_date(selfymd)ymd (str(xfor in ( , , ) ' if len( = else ' if len( = else ' if len( = else return("{ }-{ }-{ }format( , , )class francecurrencyformatterdef format_currency(selfbasecents)basecents (str(xfor in (basecents)if len(cents= cents ' elif len(cents= cents ' cents digits [for , in enumerate(reversed(base))if and not digits append('digits append(cbase 'join(reversed(digits)return "{ }eur{ }format(basecentsclass usacurrencyformatterdef format_currency(selfbasecents)basecents (str(xfor in (basecents)if len(cents= cents ' elif len(cents= cents ' cents digits [for , in enumerate(reversed(base))if and not digits append(','digits append(cbase 'join(reversed(digits)return "${ { }format(basecents