You are viewing a single comment's thread. Return to all comments →
def isaFloat(string): try: if string == '0': return False float(string.strip()) return True except ValueError: return False for nums in range(int(input())): print(isaFloat(input()))
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 →