add without carry
onurb at xiludom.gro
Fri Sep 15 12:18:20 CEST 2006
> Sorry, here's an example...
> added without carrying, 5+7=2
> i.e the result is always less than 10
> I've been thinking some more about this and my brain is starting to
> work something out...
No need to think too long to come up with the most possibly Q&D solution:
res = int(str(5 + 7)[-1])
Like it ?-)
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list