Numbers_list_int=[int(x) for x in numbers_list_char]


ValueError Traceback (most recent call last)
in
----> 1 numbers_list_int=[int(x) for x in numbers_list_char]

in (.0)
----> 1 numbers_list_int=[int(x) for x in numbers_list_char]

ValueError: invalid literal for int() with base 10: ’ ’

Hey @KUNAL.SHARMA5724510, this means x can’t be converted into int(). Try to print numbers_list_char and check this list contains all values that can be converted to integer.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.