Detect Floating Point Number

  • + 0 comments

    In Test Case 1: +.5486468 is False, but it should be True isn't it?

    for _ in range(int(input())):
        try:
            float(input())
            print(True)
        except:
            print(False)