5 lines
123 B
Python
5 lines
123 B
Python
|
|
def is_number_repl_isdigit(s):
|
|
""" Returns True if string is a number. """
|
|
return s.replace('.', '', 1).isdigit()
|