Linear Regression Health Costs Calculator issue

There must have been a change in tensor flow or there’s an out of date tutorial out there somewhere or the notebook template is out of date because this is the same error as in this thread.