You are viewing a single comment's thread. Return to all comments →
import re n = int(input()) cases = [input() for i in range(n)] pattern = r"^[+-]?\d*\.\d+$" result = [bool(re.match(pattern, c)) for c in cases] for r in result: print(r)
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 →