Basic HTML Version

|  | Table of Contents |  | View Full Version

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

    WÃkhkuõík «kuøkúk{ hLk fhðkÚke, ykÃkýLku Lke[u {wsçkLkwt ykWxÃkwx {¤u Au:

                         Output

                      Enter a number: 23
                      Two digit number

                      Enter a number: 345
                      Three digit number

                      Enter a number: 4564
                      Four digit number

                     «kuøkúk{ 8: Ëk¾÷ fhu÷k økwýLkk ykÄkhu MktËuþ AkÃkðk {kxu, «ËŠþík MktËuþkyku yk «{kýu Au:
                     1.   {kV fhþku !!!, ík{u Ãkheûkk{kt LkkÃkkMk ÚkÞk,  òu 35 fhíkk ykuAk økwý nkuÞ.
                         ‘
                     2.  òu økwý 60 fhíkk ykuAk yÚkðk íkuLkk çkhkçkh nkuÞ, íkku MktËuþ «ËŠþík ÚkkÞ Au, C økúuz MkkÚku ÃkkMk.

                     3.  òu økwý 60 Úke ðÄw yLku 85 Úke ykuAk yÚkðk Mk{kLk nkuÞ, íkku MktËuþ «ËŠþík ÚkkÞ Au  B økúuz MkkÚku ÃkkMk.
                     4.  òu fkuR Ãký þhík Mkk[e Lk ÚkkÞ, íkku, «ËŠþík MktËuþ A økúuz MkkÚku ÃkkMk nþu.

                         Program8.py

                      File  Edit  Format   Run    Options   Window    Help

                      #Program to print the message based on the marks entered.

                      my_marks = int(input('Enter the marks: '))
                      if(my_marks < 35):

                          print('Sorry!!!, You failed the exam.')

                      elif(my_marks <= 60):
                          print('Passed with C grade')

                      elif(my_marks > 60 and my_marks <=85):
                          print('Passed with B grade')

                      else:

                          print('Passed with A grade')

                                                                                            ÃkkÞÚkkuLk{kt fLzeþLk÷ Mxux{uLx  105

| 102 103 104 105 106 107 108 109 110 111 112 |