IBAN: Difference between revisions

No edit summary
Line 2,380:
 
def isValidIBAN(iban: string) -> bool:
returnlet s = rotmod97(strip(uppercase(iban))) == 1
if s.length == ccToLen(s):
return rotmod97(s) == 1
else:
return false
 
assert isValidIBAN("GB82 WEST 1234 5698 7654 32")
E
22

edits