On Mon, Jul 22, 2013 at 6:13 PM, Dave Angel <da...@davea.name> wrote:
> On 07/22/2013 02:27 PM, Jim Mooney wrote: > >> Okay, I'm getting there, but this should be translating A umlaut to an old >> DOS box character, according to my ASCII table, but instead it's print >> small 'u': >> >> def main(): >> zark = '' >> for x in "ÀÄÄÄ": >> print(unichr(ord(u'x')-3), end=' ') >> >> result: u u u u >> >> > You're not using any of the A-umlaut characters in that code. You're > repeatedly taking ord of the literal u'x' > > And naturally, u is 3 characters less than x. > Oooh - I missed that...
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor