You are viewing a single comment's thread. Return to all comments →
import re N = int(input()) for _ in range(N): print(True if re.match(r"[+-]?[0-9]*\.[0-9]+$", input()) else False)
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 →