SEDOLs: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Simplify modulo expression, no need for the workaround that is only necessary when % is a remainder operator when Python's % is a proper modulo operator) |
|||
Line 3,204: | Line 3,204: | ||
sedol, sedolweight) |
sedol, sedolweight) |
||
) |
) |
||
return str(( |
return str((-tmp) % 10) |
||
for sedol in ''' |
for sedol in ''' |
||
Line 3,248: | Line 3,248: | ||
Right(0) |
Right(0) |
||
) |
) |
||
)(lambda d: Right(str(( |
)(lambda d: Right(str((-d) % 10))) |
||