You are viewing a single comment's thread. Return to all comments →
import re pattern = r'^[+-\.]?[0-9]{0,}\.[0-9]{1,}$' n = int(input().strip()) for _ in range(n): print( bool(re.match(pattern, input().strip())) )
Seems like cookies are disabled on this browser, please enable them to open this website
Detect Floating Point Number
You are viewing a single comment's thread. Return to all comments →