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

ÃkkA÷k Ãkus Ãkh ykÃku÷k «kuøkúk{Lku [÷kðíkk, ykÃkýLku Lke[u {wsçkLkwt ykWxÃkwx {¤u Au:

                     Output

                  Enter the name of the student: Amit
                  Enter the age of the student: 18
                  Enter the marks of the student: 57
                  Amit is too young for college


                  Enter the name of the student: Kanak
                  Enter the age of the student: 23
                  Enter the marks of the student: 87
                  Kanak is selected for college




                 «kuøkúk{ 6: ykÃku÷ MktÏÞk LkMkeçkËkh Au fu Lknª íku [fkMkðk {kxu, òu ykÃku÷ MktÏÞk þqLÞ fhíkk {kuxe yLku çkufe nkuÞ íkku ‘÷fe Lktçkh’ AkÃkku yÚkðk
                 ‘÷fe Lktçkh LkÚke’ AkÃkku.


                     Program6.py
                  File  Edit  Format   Run    Options   Window    Help

                  #Program to check lucky number
                  number = int(input('Enter a number: '))
                  if(number > 0):
                      if(number % 2 == 0):
                          print('Lucky number')
                      else:
                          print('Not a lucky number')
                  else:
                      print('Try again....')




                 WÃkhkuõík «kuøkúkykÃkýLku Lke[u {wsçkLkwt ykWxÃkwx {¤u Au:


                     Output

                  Enter a number: 21
                  Not a lucky number


                  Enter a number: 12
                  Lucky number











                                                                                        ÃkkÞÚkkuLk{kt fLzeþLk÷ Mxux{uLx  103
   100   101   102   103   104   105   106   107   108   109   110