Detect Floating Point Number

  • + 0 comments

    t = int(input()) for i in range(t): a=input() try: if float(a): print(True) else: print(False) except: print(False)