Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 99 - Math_Genius_1 2
P. 99

    vkb, djs a

                       I. y?kq mÙkjh; ç'u

                          1-  ik;Fku esa print( ) iQaD'ku dk D;k mi;ksx gS\

                             ................................................................................................................................................................................
                          2-  ge ik;Fku esa oaQfM'kuy LVsVesaV~l dk mi;ksx D;ksa djrs gSa\

                             ................................................................................................................................................................................

                          3-  ik;Fku esa tai LVsVesaV dk D;k mi;ksx gS\
                             ................................................................................................................................................................................

                       II. nh?kZ mÙkjh; iz'u
                          1-  if vkSj if...else LVsVesaV esa D;k varj gS\

                          2-  ,d çksxzke esa break LVsVesaV ds mi;ksx dh O;k[;k mnkgj.k osQ lkFk djsaA

                          3-  ywi dh dk;Zç.kkyh dks mnkgj.k lfgr le>kb,A

                      III. fuEufyf•r ik;Fku dksM osQ vkmViqV dk irk yxk,¡A

                           1-   for x in [10, 20, 30 , 40 , 50]:

                                  print (x)
                           2-   for a in [1, 2, 3, 4 ]:

                                  print (a + 2)
                           3-  for n in 'PYTHON'
                                  print ("current character is", n)
                                                                                                         Subject Enrichment
                       ySc tksu
                                -

                           mi;ksxdrkZ ls nks la[;kvksa dks buiqV djus osQ fy, ,d çksxzke fy•sa vkSj tk¡psa fd igyh la[;k fdlh vU; la[;k
                            ls foHkkT; gS ;k ughaA mi;qDr lans'k Hkh çnf'kZr djsaA
                           rhu la[;kvksa esa ls lcls cM+h la[;k Kkr djus osQ fy, ,d çksxzke fyf•,A

                           fdlh O;fÙkQ dh mez n”kZ djsa vkSj tk¡psa fd og oksV osQ ;ksX; gS ;k ughaA

                           ywi  osQ  fy,  igys  10  çkÑr  la[;kvksa  dk  ;ksx  Kkr  djus  osQ  fy,  ,d  çksxzke  fy•saA  mnkgj.k  osQ  fy,
                            1+2+3+4+5+6+7+8+9+10  = 55
                           fdlh la[;k dks n”kZ djus osQ fy, ,d çksxzke fy•sa vkSj tk¡psa fd D;k if…elif…else dFku dk mi;ksx djosQ
                            la[;k 'kwU; gS] ldkjkRed ;k udkjkRed gSA

                     vè;kidksa osQ fy,

                     1-  ik;Fku esa biiqV( ) vkSj vkmViqV( ) dk;ks± vkSj blosQ egRo osQ ckjs esa foLrkj ls ckr djsaA
                     2-  oaQfM'kuy vkSj iqujko`fÙk (iteration) LVsVesaV~l osQ flaVSDl dh O;k[;k djsaA

                                                                              ikbFku esa oaQfM'kuy vkSj ywfiax LVsVesaV~l  97

| 94 95 96 97 98 99 100 101 102 103 104 |