If I have a list like below:
t = [[221.0, 223.0, 43.4],[32.5, 56.7, 65.4, 54.6]]
How can I add a value to each number? For example, I want to add 1 to each number so the list would look like:
tt = [[222.0, 223.0, 44.4],[33.5, 57.7, 66.4, 55.6]]
Currently, I can write the code to replace the first list with the second list, but I would like to create a new list while keeping the first one as well. Thanks!
t = np.array([[221.0, 223.0, 43.4],[32.5, 56.7, 65.4, 54.6]])and then saytt = t + 1.