Page 36 - Modular v1.1 Pyhton
P. 36

Program 6: To display one of the two alternate messages.





















                  On running the above program, you will get the following output:



























                  Program 7: To check if the given number is lucky or not, if the given number is greater
                  than zero and is even, then print ‘Lucky number’ else print ‘Not a lucky number’.
































                   34     Touchpad MODULAR (Version 1.0)
   31   32   33   34   35   36   37   38   39   40   41