We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Detect Floating Point Number
Detect Floating Point Number
Sort by
recency
|
538 Discussions
|
Please Login in order to post a comment
t = int(input()) for i in range(t): a=input() try: if float(a): print(True) else: print(False) except: print(False)
I believe this works well enough! As pythonic as I could make it.
Most Easy to understood