0
Can strings and intergers be in the same list?
Is list = ['spam', 5,] a valid list? If so can we use the function max(list)
2 odpowiedzi
+ 1
I took the code into the code playground, yes intergers and strings may be in the same code but ordering fuctions like max will not work.
+ 1
since the list is made from link lists so its OK,,but you can't call most functions of it