In the first assignment, the parameters written in the nested functions should be removed because they are causing errors in the code . Any user can copy the code and delete them and do the assignment , but it takes some time from the learner to realize that typo . So, removing it from the beginning will be better .