a = "u0030" #unicode for 0 b = "u00B2" #unicode for ² c = "10km2" d = "-1" e = "1.5" print(a.isnumeric()) #True print(b.isnumeric()) #True print(c.isnumeric()) #False print(d.isnumeric()) #False print(e.isnumeric()) #False