tes python jika Anda dapat mengonversi ke int
if element.isdigit():
newelement = int(element)
Wicked Willet
if element.isdigit():
newelement = int(element)
def isfloat(value):
try:
float(value)
return True
except ValueError:
return False