+ 1
nums = (11, 22, 33) nums = tuple(map(lambda x: x+5, nums)) print(nums) this shud give error bcoz tuple is imutable but no error
2 odpowiedzi
+ 2
No: it should give error if tuple wasn't iterable... being imutable is not a problem for the map() function ^^
0
May be map returns brand new tuple.