I am facing this issue while doing assignment. can you help me how to solve this issue
You need to post where the page of your specialization is, I moved it for you now. This is a very basic error you have not used identation right. I suggest you take some python classes at this point.