To count digits, uppercase and lower case in a sentence

Anyone help me what is the error in this particular code…Why this is not working…Can we try this code

I will help you figure things out by Error which you are coding .
Can you post the screenshot of error which you are getting


This is the error…

Now if you have gone through the Loop Colab Notebook
Have you seen the syntax i.e. how if-else code is written

In python you need to understand the importance of : and indentation

please check Python Indentation for reference
Also do go back and check the Notebook