I want to change the first list in the tuple below so as to increment each value by 1.
matrix = [1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15]
matrix = [x+1 for x in matrix[0]]
print(matrix)
Upon running that code, I receive a single list [2,3,4,5,6]. I am hoping someone can give me a hint that will make it so that the code returns the rest of the tuple like [2,3,4,5,6],[6,7,8,9,10],[11,12,13,14,15]