You are viewing a single comment's thread. Return to all comments →
import re for i in range(int(input())): number = input() print(bool(re.search('^[+-]?[0-9]{0,}\.[0-9]+[^A-Z]?$', number)))
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 →