Page 104 - Gujrati Play V2.0 Class 7 Flipbook
P. 104

LkuMxuz if Mxux{uLx
                  ÃkkÞÚkkuLk LkuMxuz if Mxux{uLxLku {tsqhe ykÃku Au. ykLkku yÚko yu Au fu ík{khe ÃkkMku çkeò if Mxux{uLxLke ytËh yuf if Mxux{uLx Au. yktíkrhf if ç÷kuf

                  Võík íÞkhu s [k÷þu ßÞkhu «Úk{ if fLzeþLkLkwt {qÕÞktfLk Mkk[wt Úkþu.
                  LkuMxuz if Mxux{uLxLkku rMkLxuõMk Lke[u Ëþkoðu÷ Au :

                  ðkõÞh[Lkk:                                                 Start

                  if (Test Expression1):

                       if (Test Expression2):
                                                                                          False
                                                                         if condition 1              block 3
                            Indented block 1
                       else:
                                                                                True
                            Indented block 2
                                                                                          False
                  else:
                                                                          if condition 2             block 2
                       Indented block 3
                  «kuøkúk{ 5: ykÃku÷ þhíkkuLkk ykÄkhu rðãkÚkeoLke fku÷us {kxu ÃkMktËøke ÚkR   True
                  Au fu Lknª íku þkuÄðk {kxu-                               block 1

                  1.  òu ô{h > 18 yLku økwý > 65 nkuÞ íkku ÃkMktË fhu÷ Au.

                  2.  òu ô{h > 18 ð»koÚke ðÄw nkuÞ yLku økwý < 65 fhíkkt ykuAk   Stop
                  nkuÞ íkku ÃkMktË fhu÷ LkÚke.
                  3.  òu ô{h < 18 fhíkkt ykuAe nkuÞ íkku ÃkMktË fhu÷ LkÚke


                      Program5.py
                   File  Edit  Format    Run   Options   Window    Help

                   #Program to check if a student is selected for college or not
                   name = input('Enter the name of the student: ')
                   age = int(input('Enter the age of the student: '))
                   marks = int(input('Enter the marks of the student: '))
                   if(age > 18):
                       if(marks > 65):
                           print(name, 'is selected for college')
                       else:
                           print(name, 'is not selected for college')
                   else:
                       print(name, 'is too young for college')



















                  102       Play (Ver. 2.0)-VII
   99   100   101   102   103   104   105   106   107   108   109