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