Basic HTML Version

|  | Table of Contents |  | View Full Version

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

    nðu, Ëk¾÷ fhu÷ {kLÞ {qÕÞ ÃkqýkOf {qÕÞ{kt YÃkktíkrhík ÚkkÞ Au.

                        ^÷kux(): íkuLkku WÃkÞkuøk RLkÃkwx ðuÕÞwLku ^÷ku®xøk-ÃkkuRLx ðuÕÞw{kt çkË÷ðk {kxu ÚkkÞ Au. WËknhý íkhefu,
                        a = ^÷kux(RLkÃkwx("yuf Lktçkh Ëk¾÷ fhku "))
                        nðu, Ëk¾÷ fhu÷ {kLÞ {qÕÞ ^÷ku®xøk-ÃkkuRLx {qÕÞ{kt YÃkktíkrhík ÚkkÞ Au.
                     r«Lx() VtõþLk

                     r«Lx() VtõþLk ykWxÃkwxLku MxkLzzo ykWxÃkwx rzðkRMk Ãkh r«Lx fhu Au yÚkðk {kuf÷u Au, su Mkk{kLÞ heíku {kurLkxh nkuÞ Au. yk
                     VtõþLk ykuxku{urxf heíku ykRxBMkLku ®MxÙøMk{kt fLðxo fhu Au, yux÷u fu, òu ík{u LÞw{urhf ðuÕÞw r«Lx fhðkLkku «ÞkMk fhku Aku, íkku
                     r«Lx() VtõþLk ykÃk{u¤u íkuLku Mk{fûk ®MxÙøk{kt fLðxo fhþu yLku íkuLku r«Lx fhþu. r«Lx() VtõþLk Ãký ykÃk{u¤u ykRx{ku ðå[u
                     MÃkuMk hsq fhu Au.

                     r«Lx() VtõþLkLkku Mkk{kLÞ ðkõÞh[Lkk Lke[u {wsçk Au :
                     print (<expression 1> , <expression 2>...)
                     ËkÏ÷k íkhefu,

                     print ("Python is easy").
                     [k÷ku RLkÃkwx( ) yLku r«Lx( ) VtõþLkLkku WÃkÞkuøk fhðk {kxu yuf «kuøkúk{ çkLkkðeyu.

                           Program.py
                        File  Edit  Format   Run   Options   Window    Help

                        #Program to use the input( ) and
                                                                                      Output
                        print( ) functions.
                        age = input ("Enter your age:")                            Enter your age: 12
                        name = input ("Enter your name: ")                         Enter your name: Ankit
                        print (name, "your age is", age)                           Ankit your age is 12

                                                        Using input() and print() functions
                        ÃkkÞÚkkuLk{kt [÷

                     [÷ yu {u{he huVhLMk ÃkkuRLx Au ßÞkt ykÃkýu yuðk {qÕÞku Mktøkúrník fheyu Aeyu. suLku ÃkAeÚke yuõMkuMk fhe þfkÞ Au yÚkðk çkË÷e þfkÞ
                     Au. [÷Lku ykÃku÷k Lkk{kuLku yku¤¾fíkko íkhefu yku¤¾ðk{kt ykðu Au. ÃkkÞÚkkuLk{kt, ykÃkýu [÷Lkku «fkh MÃkü fhðkLke sYh LkÚke fkhý fu
                     ÃkkÞÚkkuLk økríkþe÷ heíku xkRÃk fhu÷e ¼k»kk Au yLku íku [÷ «fkhLku ykÃk{u¤u yku¤¾u Au. [k÷ku ykÃku÷k WËknhýkuLke {ËËÚke yk Mk{Syu.

                         name = "John"  # name variable is of type str
                         age = 10 # age variable is of type num
                         print(name)
                         print(age)

                     [÷ ònuh fhðku yLku þY fhðku
                     ÃkkÞÚkkuLk{kt, [÷kuLku yuf s Mk{Þu Lke[uLke heíku ònuh yLku «kht¼ fhðk{kt ykðu Au:

                       a = 10
                       b = 20
                       print ("a=", a)
                       print ("b=", b)

                                                                                             «kuøkúk®{øk ÃkkÞÚkLkLkku Ãkrh[Þ  99

| 96 97 98 99 100 101 102 103 104 105 106 |