Advertisement
here2share

# float_check.py

Apr 24th, 2020
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. # float_check.py
  2.  
  3. fcheck = lambda z: [n.isdigit() for n in str(z).split('.')] == [1]*2
  4. zzz = '99',99,'0.0099',0.0099
  5. for z in zzz: print(z,fcheck(z))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement