Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 84 - Math_Genius_1 2
P. 84

    LØhu ij ,d fLaVªx çn£'kr djus osQ fy, fçaV LVsVesaV (Print statement) dk mi;ksx fd;k tkrk gSA fLaVªx dks
                      ges'kk ("  ") nksgjs m¼j.k fpÉksa ;k ('  ') ,dy m¼j.kksa esa layXu fd;k tkuk pkfg,A
                      x.kuk lh/s IDLE çkWEIV ij Hkh dh tk ldrh gSA

                      x.kuk djus osQ fy,] fuEu LVsIl dk ikyu djsa%
                      LVsi 1  çkWEIV ij 372 $ 7 fy•saA

                              >>> 372 +7
                      LVsi 2  Enter dh nck,¡A

                      vkmViqV 379 LØhu ij çn£'kr gksrk gSA
                      mijksÙkQ x.kuk djus osQ fy, vki fçaV LVsVesaV dk Hkh mi;ksx dj ldrs gSaA fuEufyf•r LVsIl dk ikyu djsa%

                      LVsi 1  fçaV LVsVesaV dk mi;ksx djosQ fuEu dekaM fy•sa

                              >>> print (372 + 7)
                      LVsi 2  Enter dh nck,¡A
                      vki LØhu ij leku vkmViqV 379 dks ns[krs gSaA

                                                        x.kuk djuk (Performing Calculations)
                        vkvks tkusa!

                         IDLE Editor esa flaVSDl gkbykbfVax lqfo/k gSA bldk mi;ksx fofHkUu jaxksa vkSj iQksaV esa ik;Fku dhoMZ] dekaM] fyVjy]
                         VsDLV vkfn dks çn£'kr djus osQ fy, fd;k tkrk gSA

                          ik;Fku esa osfj,cy (Variables in Python)
                      osfj,cy eseksjh LFkku gS] ftudk mi;ksx ewY;ksa dks LVksj djus osQ fy, fd;k tkrk gSA tc ,d osfj,cy cuk;k tkrk gS]
                      rks blosQ fy, eseksjh esa oqQN LFkku ns fn;k tkrk gSA bl eseksjh Lisl dks og uke ns fn;k tkrk gS] ftls ge osfj,cy
                      dks nsrs gSaA ik;Fku esa osfj,cy cukuk vklku gSA vkidks osQoy ,d osfj,cy osQ fy, ,d oSY;w nsus dh vko';drk gSA
                      mnkgj.k osQ fy,]
                             age = 30

                             name = "Nisha"
                             temp = 35.7
                             price = 625.50
                      ;gk¡ 30] "Nisha"] 35.7 vkSj 625.50 Øe'k% vk;q] uke] vLFkk;h vkSj ewY; uked oSY;w dks fufnZ"V eku gSaA

                         82  Play (Ver. 1.0)-VIII

| 79 80 81 82 83 84 85 86 87 88 89 |