You are viewing a single comment's thread. Return to all comments →
import sys, re N = sys.stdin.read() N = N.splitlines()[1:] pattern = r"^[+-.]?\d*[.]\d+$" for line in N: match = re.search(pattern, line) if match != None: 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 →