Week 1 : Programming Assignment, ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (10,) + inhomogeneous part

ok so this could be version issue. can you check which tf and keras version is your notebook working on?

a similar issue thread