Is the List in python homogeneous or heterogeneous?
Please try a simple
a=[1, "a"]
and see if it throws an error before asking a question.
Btw, it does not.