Don't post links to images; put the relevant information in the question itself, as text. https://stackoverflow.com/help/how-to-ask
– chepnerFeb 09 '20 at 13:45
1 Answers1
0
In picture 1, you're add two different shapes (4,) and (1,).
In picture 2, the shapes are automatically turned to equal (4,) by python. Though I still recommend always keeping equal shapes when writing code, because you never know when you might get an error for unequal sizes/shapes - especially with large arrays/sizes.
the shape of your tuple - the first one has 4 values and the second one that youre adding has a shape of 1 - which is why you get an error in picture 1
– Ramsha SiddiquiFeb 09 '20 at 16:05