Skip to main content

Read about Python Programming Language.

      

Hello Friends.


In Our Previous Blog, We have Learned the Basics of Python Programming Language & Simple Program in Python Programming Language.
In Today's Blog We Will Create Some Basic Program in Python Programming Language.


Print List Item in Assending Order Without Using Sort Function Program in Python Programming Language.


Assending Order- Program

#List in Assending Order

list=[9,5,1,7,5,3,6,2,8,0]

for i in range(0,len(list)):

    for j in range(i+1,len(list)):

        if list[i]>list[j]:

            temp=list[i]

            list[i]=list[j]

            list[j]=temp

print(type(list))

print("Assending Order = ",list)    


Output

<class 'list'>

Assending Order =  [0, 1, 2, 3, 5, 5, 6, 7, 8, 9]


Print List Item in Dessending Order Without Using Sort Function Program in Python Programming Language.


Dessending Order- Program

#List in Dessending Order

list=[9,5,1,7,5,3,6,2,8,0]

for i in range(0,len(list)):

    for j in range(i+1,len(list)):

        if list[i]<list[j]:

            temp=list[i]

            list[i]=list[j]

            list[j]=temp

print(type(list))

print("Dessending Order = ",list)


Output

<class 'list'>

  Dessending Order =  [9, 8, 7, 6, 5, 5, 3, 2, 1, 0]


If You want to Know the Basics of Python Programming Language then Click On this Link.


If You want to Know about Information Technology or It Technology, Then Click on the Link given above.

If you want to see Our Privacy Policy then You Can Click on this Link.



Hope, You Enjoy this Our Blogs on Python Language.



Comments

Popular posts from this blog

Introduction of IT Technology

 नमस्कार दोस्तों😃 आज के हमारे पहले ब्लॉग मैं हम आईटी टेक्नोलॉजी या इनफार्मेशन टेक्नोलॉजी के परिचय को समझेंगे । तो चलिए आज के ब्लॉग की शुरुआत करते हैं। Introduction of IT technology वर्तमान समय में प्रत्येक व्यक्ति किसी ना किसी डिवाइस के माध्यम से इंटरनेट से जुड़ा हुआ है जिससे कि वह अपने कार्य को सरल काफी आसान और काफी कम समय में पूरा कर पाए। आई टेक्नोलॉजी से आशय एक ऐसी टेक्नोलॉजी से है जिससे कि किसी भी प्रकार के डाटा और इंफॉर्मेशन को आपस में आसानी से साझा किया जा सके और किसी भी कार्य को सरल किया जा सके अगर हम एक उदाहरण से समझे तो पहले के समय में कम्युनिकेशन को कर पाना काफी मुश्किल हुआ करता था परंतु आज इंटरनेट की सहायता से कम्युनिकेशन को कर पाना काफी आसान हो गया है ठीक उसी प्रकार जब हम इनफार्मेशन टेक्नोलॉजी के बारे में सोचते हैं तो इनफार्मेशन टेक्नोलॉजी का आशय केवल एक ऐसी  टेक्नोलॉजी से नहीं होता जिसमें सूचनाओं का आदान प्रदान किया जा सके बल्कि एक ऐसी टेक्नोलॉजी से होता है जब हम इंटरनेट पर कोई भी कार्य कर रहे हो तो वह सारे कार्य इनफार्मेशन टेक्नोलॉजी के अंतर्गत ही आते हैं इनफार्...

Components of Information Technology

नमस्कार दोस्तों😃 जैसा कि हमने हमारे पिछले आर्टिकल अथवा ब्लॉग मैं इंफॉर्मेशन टेक्नोलॉजी के बारे में उसके परिचय को समझा की इनफार्मेशन टेक्नोलॉजी आखिर होती  क्या  है? आज के हम हमारे ब्लॉग में जानेंगे की इंफॉर्मेशन टेक्नोलॉजी के कौन कौन से घटक(Components) है तथा सभी के क्या-क्या कार्य(Works) है।                                                                                   Components of Information Technology जैसा कि हमने जाना वर्तमान समय आईटी टेक्नोलॉजी का है,तथा आने वाला समय भी आईटी टेक्नोलॉजी का ही होगा । आज हर क्षेत्र में आईटी टेक्नोलॉजी का इस्तेमाल किया जा रहा है, और टेक्नोलॉजी के कारण प्रत्येक व्यक्ति के कार्य या दैनिक कार्य काफी आसान हो गया ।   आज आईटी टेक्नोलॉजी के कारण ही टेक्नोलॉजी का काफी विकास संभव हो पाया है । वैसे तो आईटी टेक्नोलॉजी अथवा इनफार्मेशन टेक...