Oh! I see, thank you very much Mekire!
This code snippet intention is to teach my classmates, some Python, I added some space there, in order to make it a little more readable for them (but I have Sublime Text delete all whitespace at the end of a line
), I also wanted to show them how Python 3 accepts unicode characters in strings and identifiers by default, pherhaps accents are not such a big issue, but there are some classic examples in spanish, where using only ASCII reads akward or even cacophonous to some people
- Code: Select all
año # year
niño # boy
niña # girl
ano # anus
# I hate this "C" style workaround:
Could you please elavorate into why you think it is not a good idea?
I have only used doctest.testmod thus far, but I will check out unittest, I have some other code that may also require it because it uses a lot of floating point math, which I'm also trying to change to use decimal.Decimal instead.