Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 108 - Gujrati Play V2.0 Class 6 Flipbook
P. 108

    «kuøkúk{ 4: çkÄk rh÷uþLk÷ ykuÃkhuxhkuLkk fkÞkuo çkíkkððk {kxu

                          Program4.py

                       File  Edit  Format   Run    Options   Window    Help

                       #example of arithmetic operators
                       a = 11
                       b = 32

                       #Check if a is greater then b
                       print(a > b)
                       #Check if a is less then b
                       print(a < b)
                       #Check if a is equal to b
                       print(a == b)
                       #Check if a is not equal to b
                       print(a != b)
                       #Check if a is greater then equal to b
                       print(a >= b)
                       #Check if a is less then equal to b
                       print(a <= b)

                      WÃkhkuõík «kuøkúk{Lkwt Ãkrhýk{ Au:

                          Output

                       False
                       True
                       False
                       True
                       False
                       True

                          ykuÃkhuxhkuLke «kÄkLÞíkk

                      ykuÃkhuxhkuLke «kÚkr{fíkk ykuÃkhuxhku fÞk ¢{{kt [÷kððk{kt ykðu Au íku Lk¬e fhu Au. ÃkkÞÚkkuLk{kt ykuÃkhuxh «kÚkr{fíkk ykÃku÷ fkuüf{kt Mkqr[çkØ
                      Au. MkkiÚke ðÄw «kÚkr{fíkk xku[ Ãkh Au.

                                          ykuÃkhuxh                                     Lkk{
                             ()                                 fkIMk

                             **                                 ½kíkktf
                             *, /, %, //                        økwýkfkh, ¼køkkfkh, {kuzâw÷Mk, ^÷kuh rzrðÍLk

                             +, –                               Mkhðk¤k, çkkËçkkfe
                             ==, !=, >, <, >=, <=               Mkh¾k{ýe

                             =, +=, -=, *=, /=, %=, **=, //=    yuMkkRLk{uLx
                             not

                             and                                ÷kursf÷
                             or

                      106       Play (Ver. 2.0)-VI

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