fai così:
codice:
if linea[0] in [str(x) for x in range(10)]:
  ....