Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 91 - 2619_PlusGPT V2.1_C-8
P. 91

    On running the program, we get the following output:

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

                     On running the above program, we get the following output:

                             Let’s CatCh uP                                                           Computational Thinking

                       Find the error in the following code and rewrite the code.

                       if(age > 18)
                       print('You are eligible to vote')
                       else:

                       print('Not eligible to vote')

                                                                                        Conditional Statements in Python  89

| 86 87 88 89 90 91 92 93 94 95 96 |