[Type A] Python Revision Tour-1 – Chapter 1

|
Table of Contents

5. Out of the following, find those identifiers, which cannot be used for naming Variables or Functions in a Python program: Price*Qty, class, For, do, 4thCol, totally, Row31, _Amount

Identifiers cannot contain special characters like *, start with a digit (4thCol), or be keywords (class, for, do). So, Price*Qty, class, For, do, 4thCol are not valid identifiers.

"Spread the light within, illuminate the hearts around you. Sharing is not just an action, but a sacred journey of connecting souls."~ Anonymous

Leave a Reply

Your email address will not be published. Required fields are marked *