SlideShare a Scribd company logo
1 of 2
Name of Students Omkar Rane
Roll No D422
Batch D1
Experiment No EX-6-2
Title of Experiment
EX-6.2: Choose the words from the file, store in the list
and sort the list is ascending order.
Write An Algorithm:
Step1) start
Step2) let word =[] # empty list
Step3) use open(“h.txt”,”r”)
Step4) use a=h.read()
Step5) word=a.split() # splitting function
Step6) display word
Step7) word.sort() # sorting function
Step8) Display word
Step9)stop
Paste Your Python Program ( Python Code):
word=[] # define empty list
h=open("h.txt","r") # open function
a=h.read() # read function
word=a.split() # split
print word,"Unsorted list"
word.sort() # sorting
print word,"this is required sorted list"
Paste Your Program OUTPUT :
>>>
['C++', 'C', 'C#', 'Ruby', 'perl', 'Basic', 'pascal', 'cobol', 'python', 'Assembly'] Unsorted
list
['Assembly', 'Basic', 'C', 'C#', 'C++', 'Ruby', 'cobol', 'pascal', 'perl', 'python'] this is
required sorted list
>>>

More Related Content

What's hot (18)

Lesson11
Lesson11Lesson11
Lesson11
 
Unit 4 python -list methods
Unit 4   python -list methodsUnit 4   python -list methods
Unit 4 python -list methods
 
Passing Parameters using File and Command Line
Passing Parameters using File and Command LinePassing Parameters using File and Command Line
Passing Parameters using File and Command Line
 
Linq
LinqLinq
Linq
 
Datastructures in python
Datastructures in pythonDatastructures in python
Datastructures in python
 
Python programming : Files
Python programming : FilesPython programming : Files
Python programming : Files
 
Functions in PHP
Functions in PHPFunctions in PHP
Functions in PHP
 
5 Structure & File.pptx
5 Structure & File.pptx5 Structure & File.pptx
5 Structure & File.pptx
 
Java chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and useJava chapter 6 - Arrays -syntax and use
Java chapter 6 - Arrays -syntax and use
 
SWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jenaSWT Lecture Session 8 - Inference in jena
SWT Lecture Session 8 - Inference in jena
 
30csharp
30csharp30csharp
30csharp
 
Php Chapter 2 3 Training
Php Chapter 2 3 TrainingPhp Chapter 2 3 Training
Php Chapter 2 3 Training
 
Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python Let’s Learn Python An introduction to Python
Let’s Learn Python An introduction to Python
 
DIG1108 Lesson 6
DIG1108 Lesson 6DIG1108 Lesson 6
DIG1108 Lesson 6
 
Datatypes in python
Datatypes in pythonDatatypes in python
Datatypes in python
 
IO Streams, Files and Directories
IO Streams, Files and DirectoriesIO Streams, Files and Directories
IO Streams, Files and Directories
 
pyton Notes6
 pyton Notes6 pyton Notes6
pyton Notes6
 
Software Craftsmanship - 2
Software Craftsmanship - 2Software Craftsmanship - 2
Software Craftsmanship - 2
 

Similar to Exp 6.2 d-422 (1)

Exp 6.1 d-422-1
Exp 6.1  d-422-1Exp 6.1  d-422-1
Exp 6.1 d-422-1Omkar Rane
 
File handling in pythan.pptx
File handling in pythan.pptxFile handling in pythan.pptx
File handling in pythan.pptxNawalKishore38
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...DRVaibhavmeshram1
 
FUNDAMENTALS OF PYTHON LANGUAGE
 FUNDAMENTALS OF PYTHON LANGUAGE  FUNDAMENTALS OF PYTHON LANGUAGE
FUNDAMENTALS OF PYTHON LANGUAGE Saraswathi Murugan
 
Python Workshop - Learn Python the Hard Way
Python Workshop - Learn Python the Hard WayPython Workshop - Learn Python the Hard Way
Python Workshop - Learn Python the Hard WayUtkarsh Sengar
 
Basics of Python programming (part 2)
Basics of Python programming (part 2)Basics of Python programming (part 2)
Basics of Python programming (part 2)Pedro Rodrigues
 
Programming in Python
Programming in Python Programming in Python
Programming in Python Tiji Thomas
 
Python Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdfPython Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdfSreedhar Chowdam
 
List,tuple,dictionary
List,tuple,dictionaryList,tuple,dictionary
List,tuple,dictionarynitamhaske
 
R for Pythonistas (PyData NYC 2017)
R for Pythonistas (PyData NYC 2017)R for Pythonistas (PyData NYC 2017)
R for Pythonistas (PyData NYC 2017)Christopher Roach
 
python beginner talk slide
python beginner talk slidepython beginner talk slide
python beginner talk slidejonycse
 
Introduction to R
Introduction to RIntroduction to R
Introduction to Ragnonchik
 
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesMatt Harrison
 
Module 2 - Lists, Tuples, Files.pptx
Module 2 - Lists, Tuples, Files.pptxModule 2 - Lists, Tuples, Files.pptx
Module 2 - Lists, Tuples, Files.pptxGaneshRaghu4
 
R Programming: Importing Data In R
R Programming: Importing Data In RR Programming: Importing Data In R
R Programming: Importing Data In RRsquared Academy
 

Similar to Exp 6.2 d-422 (1) (20)

Exp 6.1 d-422-1
Exp 6.1  d-422-1Exp 6.1  d-422-1
Exp 6.1 d-422-1
 
File handling in pythan.pptx
File handling in pythan.pptxFile handling in pythan.pptx
File handling in pythan.pptx
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
 
Python basic
Python basicPython basic
Python basic
 
Pythonppt28 11-18
Pythonppt28 11-18Pythonppt28 11-18
Pythonppt28 11-18
 
FUNDAMENTALS OF PYTHON LANGUAGE
 FUNDAMENTALS OF PYTHON LANGUAGE  FUNDAMENTALS OF PYTHON LANGUAGE
FUNDAMENTALS OF PYTHON LANGUAGE
 
Python Workshop - Learn Python the Hard Way
Python Workshop - Learn Python the Hard WayPython Workshop - Learn Python the Hard Way
Python Workshop - Learn Python the Hard Way
 
Basics of Python programming (part 2)
Basics of Python programming (part 2)Basics of Python programming (part 2)
Basics of Python programming (part 2)
 
Programming in Python
Programming in Python Programming in Python
Programming in Python
 
Python Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdfPython Programming by Dr. C. Sreedhar.pdf
Python Programming by Dr. C. Sreedhar.pdf
 
List,tuple,dictionary
List,tuple,dictionaryList,tuple,dictionary
List,tuple,dictionary
 
R for Pythonistas (PyData NYC 2017)
R for Pythonistas (PyData NYC 2017)R for Pythonistas (PyData NYC 2017)
R for Pythonistas (PyData NYC 2017)
 
python beginner talk slide
python beginner talk slidepython beginner talk slide
python beginner talk slide
 
Python_IoT.pptx
Python_IoT.pptxPython_IoT.pptx
Python_IoT.pptx
 
CPPDS Slide.pdf
CPPDS Slide.pdfCPPDS Slide.pdf
CPPDS Slide.pdf
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
 
Module 2 - Lists, Tuples, Files.pptx
Module 2 - Lists, Tuples, Files.pptxModule 2 - Lists, Tuples, Files.pptx
Module 2 - Lists, Tuples, Files.pptx
 
R Programming: Importing Data In R
R Programming: Importing Data In RR Programming: Importing Data In R
R Programming: Importing Data In R
 
R seminar dplyr package
R seminar dplyr packageR seminar dplyr package
R seminar dplyr package
 

More from Omkar Rane

Enabling SSL Elasticsearch on server
Enabling SSL Elasticsearch on serverEnabling SSL Elasticsearch on server
Enabling SSL Elasticsearch on serverOmkar Rane
 
Anti lock braking (ABS) Model based Design in MATLAB-Simulink
Anti lock braking (ABS) Model based Design in MATLAB-SimulinkAnti lock braking (ABS) Model based Design in MATLAB-Simulink
Anti lock braking (ABS) Model based Design in MATLAB-SimulinkOmkar Rane
 
Autosar fundamental
Autosar fundamentalAutosar fundamental
Autosar fundamentalOmkar Rane
 
Stress Management
Stress ManagementStress Management
Stress ManagementOmkar Rane
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot) Omkar Rane
 
Concept of Diversity & Fading (wireless communication)
Concept of Diversity & Fading (wireless communication)Concept of Diversity & Fading (wireless communication)
Concept of Diversity & Fading (wireless communication)Omkar Rane
 
Tata Motors GDC .LTD Internship
Tata Motors GDC .LTD Internship Tata Motors GDC .LTD Internship
Tata Motors GDC .LTD Internship Omkar Rane
 
Machine Learning Model for M.S admissions
Machine Learning Model for M.S admissionsMachine Learning Model for M.S admissions
Machine Learning Model for M.S admissionsOmkar Rane
 
Timer 0 programming on LPC 1768
Timer 0 programming on LPC 1768Timer 0 programming on LPC 1768
Timer 0 programming on LPC 1768Omkar Rane
 
ADC (Analog to Digital conversion) using LPC 1768
ADC (Analog to Digital conversion) using LPC 1768ADC (Analog to Digital conversion) using LPC 1768
ADC (Analog to Digital conversion) using LPC 1768Omkar Rane
 
PWM based motor speed control using LPC 1768
PWM based motor speed control using LPC 1768PWM based motor speed control using LPC 1768
PWM based motor speed control using LPC 1768Omkar Rane
 
UART interfacing on LPC1768 (Cortex M3 micro controller)
UART interfacing on LPC1768 (Cortex M3 micro controller)UART interfacing on LPC1768 (Cortex M3 micro controller)
UART interfacing on LPC1768 (Cortex M3 micro controller)Omkar Rane
 
LED Blinking logic on LPC1768
LED Blinking logic on LPC1768LED Blinking logic on LPC1768
LED Blinking logic on LPC1768Omkar Rane
 
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)Omkar Rane
 
Vlisi Course project presentation:Keypad Scanner
Vlisi Course project presentation:Keypad ScannerVlisi Course project presentation:Keypad Scanner
Vlisi Course project presentation:Keypad ScannerOmkar Rane
 
VlSI course project report : Keypad Scanner
VlSI course project report : Keypad Scanner VlSI course project report : Keypad Scanner
VlSI course project report : Keypad Scanner Omkar Rane
 
LPC 1768 A study on Real Time clock features
LPC 1768 A study on Real Time clock featuresLPC 1768 A study on Real Time clock features
LPC 1768 A study on Real Time clock featuresOmkar Rane
 
Nexys4ddr rm FPGA board Datasheet
Nexys4ddr rm  FPGA board DatasheetNexys4ddr rm  FPGA board Datasheet
Nexys4ddr rm FPGA board DatasheetOmkar Rane
 
Linear Regression (Machine Learning)
Linear Regression (Machine Learning)Linear Regression (Machine Learning)
Linear Regression (Machine Learning)Omkar Rane
 
transmission gate based design for 2:1 Multiplexer in micro-wind
transmission gate based design for 2:1 Multiplexer in micro-windtransmission gate based design for 2:1 Multiplexer in micro-wind
transmission gate based design for 2:1 Multiplexer in micro-windOmkar Rane
 

More from Omkar Rane (20)

Enabling SSL Elasticsearch on server
Enabling SSL Elasticsearch on serverEnabling SSL Elasticsearch on server
Enabling SSL Elasticsearch on server
 
Anti lock braking (ABS) Model based Design in MATLAB-Simulink
Anti lock braking (ABS) Model based Design in MATLAB-SimulinkAnti lock braking (ABS) Model based Design in MATLAB-Simulink
Anti lock braking (ABS) Model based Design in MATLAB-Simulink
 
Autosar fundamental
Autosar fundamentalAutosar fundamental
Autosar fundamental
 
Stress Management
Stress ManagementStress Management
Stress Management
 
Bootloaders (U-Boot)
Bootloaders (U-Boot) Bootloaders (U-Boot)
Bootloaders (U-Boot)
 
Concept of Diversity & Fading (wireless communication)
Concept of Diversity & Fading (wireless communication)Concept of Diversity & Fading (wireless communication)
Concept of Diversity & Fading (wireless communication)
 
Tata Motors GDC .LTD Internship
Tata Motors GDC .LTD Internship Tata Motors GDC .LTD Internship
Tata Motors GDC .LTD Internship
 
Machine Learning Model for M.S admissions
Machine Learning Model for M.S admissionsMachine Learning Model for M.S admissions
Machine Learning Model for M.S admissions
 
Timer 0 programming on LPC 1768
Timer 0 programming on LPC 1768Timer 0 programming on LPC 1768
Timer 0 programming on LPC 1768
 
ADC (Analog to Digital conversion) using LPC 1768
ADC (Analog to Digital conversion) using LPC 1768ADC (Analog to Digital conversion) using LPC 1768
ADC (Analog to Digital conversion) using LPC 1768
 
PWM based motor speed control using LPC 1768
PWM based motor speed control using LPC 1768PWM based motor speed control using LPC 1768
PWM based motor speed control using LPC 1768
 
UART interfacing on LPC1768 (Cortex M3 micro controller)
UART interfacing on LPC1768 (Cortex M3 micro controller)UART interfacing on LPC1768 (Cortex M3 micro controller)
UART interfacing on LPC1768 (Cortex M3 micro controller)
 
LED Blinking logic on LPC1768
LED Blinking logic on LPC1768LED Blinking logic on LPC1768
LED Blinking logic on LPC1768
 
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
CAN interfacing on LPC1768 (ARM Cortex M3 based Micro controller)
 
Vlisi Course project presentation:Keypad Scanner
Vlisi Course project presentation:Keypad ScannerVlisi Course project presentation:Keypad Scanner
Vlisi Course project presentation:Keypad Scanner
 
VlSI course project report : Keypad Scanner
VlSI course project report : Keypad Scanner VlSI course project report : Keypad Scanner
VlSI course project report : Keypad Scanner
 
LPC 1768 A study on Real Time clock features
LPC 1768 A study on Real Time clock featuresLPC 1768 A study on Real Time clock features
LPC 1768 A study on Real Time clock features
 
Nexys4ddr rm FPGA board Datasheet
Nexys4ddr rm  FPGA board DatasheetNexys4ddr rm  FPGA board Datasheet
Nexys4ddr rm FPGA board Datasheet
 
Linear Regression (Machine Learning)
Linear Regression (Machine Learning)Linear Regression (Machine Learning)
Linear Regression (Machine Learning)
 
transmission gate based design for 2:1 Multiplexer in micro-wind
transmission gate based design for 2:1 Multiplexer in micro-windtransmission gate based design for 2:1 Multiplexer in micro-wind
transmission gate based design for 2:1 Multiplexer in micro-wind
 

Recently uploaded

Lab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjjLab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjjjoshuaclack73
 
CAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptx
CAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptxCAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptx
CAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptxSangram Sahoo
 
Smart Watering Solutions for Your Garden
Smart Watering Solutions for Your GardenSmart Watering Solutions for Your Garden
Smart Watering Solutions for Your Gardencleaningmachineryau
 
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...CIFOR-ICRAF
 
Data analysis and findings
Data analysis and findingsData analysis and findings
Data analysis and findingsCIFOR-ICRAF
 
Role of nanotechnology in management of stored grain pests of cereals and pulses
Role of nanotechnology in management of stored grain pests of cereals and pulsesRole of nanotechnology in management of stored grain pests of cereals and pulses
Role of nanotechnology in management of stored grain pests of cereals and pulsesRavikumar Vaniya
 
Palynology: History, branches, basic principles and application, collection o...
Palynology: History, branches, basic principles and application, collection o...Palynology: History, branches, basic principles and application, collection o...
Palynology: History, branches, basic principles and application, collection o...Sangram Sahoo
 
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuseslidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reusedhanalakshmi88488
 
2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptx
2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptx2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptx
2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptxEllen Book
 
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...The Hebrew University of Jerusalem
 
Fuel Cells and Hydrogen in Transportation - An Introduction
Fuel Cells and Hydrogen in Transportation - An IntroductionFuel Cells and Hydrogen in Transportation - An Introduction
Fuel Cells and Hydrogen in Transportation - An IntroductionGlenn Rambach
 
Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...
Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...
Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...poonam rawat$V15
 
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptxHertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptxEdgar Hertwich
 
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...Amil Baba Dawood bangali
 
Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...
Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...
Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...Muhammad Hashim
 
Yil Me Hu Spring 2024 - Nisqually Salmon Recovery Newsletter
Yil Me Hu Spring 2024 - Nisqually Salmon Recovery NewsletterYil Me Hu Spring 2024 - Nisqually Salmon Recovery Newsletter
Yil Me Hu Spring 2024 - Nisqually Salmon Recovery NewsletterNisqually River Council
 
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCarbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCIFOR-ICRAF
 
Heavy metals with their causes and effect.ppt
Heavy metals with their causes and effect.pptHeavy metals with their causes and effect.ppt
Heavy metals with their causes and effect.pptSycoQueen11
 
A Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with MangrovesA Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with MangrovesCIFOR-ICRAF
 
PRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptx
PRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptxPRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptx
PRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptxKnipeNyenyayi
 

Recently uploaded (20)

Lab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjjLab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjj
 
CAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptx
CAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptxCAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptx
CAUSES,EFFECTS,CONTROL OF DEFORESTATION.pptx
 
Smart Watering Solutions for Your Garden
Smart Watering Solutions for Your GardenSmart Watering Solutions for Your Garden
Smart Watering Solutions for Your Garden
 
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
Coastal and mangrove vulnerability assessment In the Northern Coast of Java, ...
 
Data analysis and findings
Data analysis and findingsData analysis and findings
Data analysis and findings
 
Role of nanotechnology in management of stored grain pests of cereals and pulses
Role of nanotechnology in management of stored grain pests of cereals and pulsesRole of nanotechnology in management of stored grain pests of cereals and pulses
Role of nanotechnology in management of stored grain pests of cereals and pulses
 
Palynology: History, branches, basic principles and application, collection o...
Palynology: History, branches, basic principles and application, collection o...Palynology: History, branches, basic principles and application, collection o...
Palynology: History, branches, basic principles and application, collection o...
 
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuseslidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
 
2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptx
2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptx2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptx
2024-05-08 Composting at Home 101 for the Rotary Club of Pinecrest.pptx
 
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
 
Fuel Cells and Hydrogen in Transportation - An Introduction
Fuel Cells and Hydrogen in Transportation - An IntroductionFuel Cells and Hydrogen in Transportation - An Introduction
Fuel Cells and Hydrogen in Transportation - An Introduction
 
Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...
Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...
Unsatisfied Bhabhi ℂall Girls Navi Mumbai Hire Me Neha 9910780858 Top Class ℂ...
 
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptxHertwich_EnvironmentalImpacts_BuildingsGRO.pptx
Hertwich_EnvironmentalImpacts_BuildingsGRO.pptx
 
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
 
Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...
Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...
Mastering Sustainable Living: Your Comprehensive Guide to Greener Choices in ...
 
Yil Me Hu Spring 2024 - Nisqually Salmon Recovery Newsletter
Yil Me Hu Spring 2024 - Nisqually Salmon Recovery NewsletterYil Me Hu Spring 2024 - Nisqually Salmon Recovery Newsletter
Yil Me Hu Spring 2024 - Nisqually Salmon Recovery Newsletter
 
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCarbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
 
Heavy metals with their causes and effect.ppt
Heavy metals with their causes and effect.pptHeavy metals with their causes and effect.ppt
Heavy metals with their causes and effect.ppt
 
A Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with MangrovesA Wide Range of Eco System Services with Mangroves
A Wide Range of Eco System Services with Mangroves
 
PRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptx
PRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptxPRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptx
PRESENTATION 1 - GLOBAL SUSTAINABILITY CHALLENGES.pptx
 

Exp 6.2 d-422 (1)

  • 1. Name of Students Omkar Rane Roll No D422 Batch D1 Experiment No EX-6-2 Title of Experiment EX-6.2: Choose the words from the file, store in the list and sort the list is ascending order. Write An Algorithm: Step1) start Step2) let word =[] # empty list Step3) use open(“h.txt”,”r”) Step4) use a=h.read() Step5) word=a.split() # splitting function Step6) display word Step7) word.sort() # sorting function Step8) Display word Step9)stop Paste Your Python Program ( Python Code): word=[] # define empty list h=open("h.txt","r") # open function a=h.read() # read function word=a.split() # split
  • 2. print word,"Unsorted list" word.sort() # sorting print word,"this is required sorted list" Paste Your Program OUTPUT : >>> ['C++', 'C', 'C#', 'Ruby', 'perl', 'Basic', 'pascal', 'cobol', 'python', 'Assembly'] Unsorted list ['Assembly', 'Basic', 'C', 'C#', 'C++', 'Ruby', 'cobol', 'pascal', 'perl', 'python'] this is required sorted list >>>