Invalid Syntax-Image_Segmentation_UNet_v2

Hi, I encountered a problem in Exercise 2: upsampling_block where it displays an invalid syntax error as below:

merge=concatenate([up, contractive_inputs],axis=3)
SyntaxError: invalid syntax

I have no idea what is the problem with this line of the code. Would appreciate if anyone could point out. Thank you

When you get a syntax error on a line that looks fine, the usual cause is missing close parentheses or close brackets or some other form of dangling incomplete syntax on the previous non-comment line. The notebook editor is “syntax aware”, so you can use it to check your matching delimiters: just click on a paren and it will highlight the matching one. Or not :scream_cat:

Thanks for pointing out. I deleted the entire script of code and retype it and it works fine. I am not sure what is the problem but the problem has been solved. Thank you!