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)

3rd Jan 2017, 9:48 PM
Tom Le
Tom Le - avatar
2 ответов
+ 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.
3rd Jan 2017, 9:55 PM
Tom Le
Tom Le - avatar
+ 1
since the list is made from link lists so its OK,,but you can't call most functions of it
3rd Jan 2017, 11:55 PM
Jamal Al-kelani
Jamal Al-kelani - avatar