Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 10,5 would return true
- 10 would return true
- 9,3 would return false
- 9,5 would return true
- import re
- def int_or_comma_5(n):
- return re.match('d+(,5)?$',n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement