You are viewing a single comment's thread. Return to all comments →
import re num_test = int(input()) pattern = re.compile(r'[-+]?\d*\.\d+') for _ in range(num_test): print(bool(pattern.fullmatch(input())))
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 →