TypeError doubt

Hi. Can someone explain how to resolve this error?


I have moved this post to the DLS Course 1 category. Make sure if you have any course-specific doubts, explore the specialization category and post in the relevant course subcategory as course-specific mentors are actively answering the queries there and the threads in the general discussion might not come on their radar and remain unanswered at times.