Avatar ·

Some elements from the list are converted into int

📁 список, python, пример

Please tell me, is there a shorter way to convert the elements into the type int ?
Dan, for example, the list of a = ["" "" "2" "," "Hello", "3", "" Hello ""]
is it possible, somehow the shorter transformation is recorded, but not So:

  a [ 0 ] =  0 ]) a [ 1 ] =  int  (a [ 1 ]) a [ 3 ] =  int  (a [ 3 ])     

the list is really longer, I do not want to make such a pillar in the code.