Page 425 - CITS - Computer Software Application -TT
P. 425

COMPUTER SOFTWARE APPLICATION - CITS




           Python Keywords
           All Python keywords cannot be used for variable names:






























           Python is a case-sensitive language and Python keywords are case- sensitive.

           Please take note that these 3 keywords - False, None, True all of them start with an uppercase character and not
           a lowercase character:
           False

           None
           True
           Variable names are also case-sensitive:
           False is not the same as false
           False cannot be used as a variable name

           false can be used as a variable name
           The Python keyword False, which starts with an uppercase F, is not the same as lowercase false.
           Python keyword False cannot be used as a variable name, but lowercase false can be used as a variable name.
           Tracing Variables
           As the value of a variable changes throughout our program because new values are constantly assigned to it, we
           can use the print() function to trace the value of our variables.
           The print() function can be used for debugging purposes whereby we need to know what went wrong in our
           program - and one way to find out is to trace how the value of our variables changes in the course of our program.



















                                                           412

                             CITS : IT&ITES - Computer Software Application - Lesson 120 - 137
   420   421   422   423   424   425   426   427   428   429   430