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

|
Table of Contents

2. How are keywords different from identifiers?

FeatureKeywordsIdentifiers
OriginPredefined by PythonUser-defined by programmer
PurposeDefine program structure, control flow, data types, operationsLabel variables, functions, classes, modules
UsageFixed meaning and functionalityDescriptive names reflecting code purpose
FlexibilityCannot be changed or used for other purposesCan be chosen by programmer within naming conventions
Case SensitivityYes (if != If)Yes (myVariable != MyVariable)
Examplesif, else, for, while, def, class, True, Falsename, calculate_area, my_list, student_class
"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 *