Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # float_check.py
- fcheck = lambda z: [n.isdigit() for n in str(z).split('.')] == [1]*2
- zzz = '99',99,'0.0099',0.0099
- for z in zzz: print(z,fcheck(z))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement