Which of the following is the best way of checking if a string could be represented as a number?
Correct Answer: def is_number(s): try: float(s) return True except ValueError: return False
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions