You are viewing a single comment's thread. Return to all comments →
T = int(input()) for i in range(T): N= input() if ('.') in N: try: N= float(N) print(True) except: print(False) 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 →