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