SlideShare a Scribd company logo
2. Write a Python program to remove characters that have odd index values in a given string.
3. Write a Python program to count the occurrences of each word in a given sentence.
4 Write a Python script that takes input from the user and displays that input back in upper and
lower cases.
5. Write a Python program that accepts a comma-separated sequence of words as input and
prints the distinct words in sorted form (alphanumerically).
Sample Words : red, white, black, red, green, black
Expected Result : black, green, red, white,red

More Related Content

More from allwayscollection

15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf
15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf
15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf
allwayscollection
 
142 Cranlal Nerwe Jumetion.pdf
142 Cranlal Nerwe Jumetion.pdf142 Cranlal Nerwe Jumetion.pdf
142 Cranlal Nerwe Jumetion.pdf
allwayscollection
 
14. Essay Using the following information f�Using the followi.pdf
14. Essay Using the following information f�Using the followi.pdf14. Essay Using the following information f�Using the followi.pdf
14. Essay Using the following information f�Using the followi.pdf
allwayscollection
 
14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf
14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf
14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf
allwayscollection
 
13. Alan, Bruce and Connie want to combine their property in a new c.pdf
13. Alan, Bruce and Connie want to combine their property in a new c.pdf13. Alan, Bruce and Connie want to combine their property in a new c.pdf
13. Alan, Bruce and Connie want to combine their property in a new c.pdf
allwayscollection
 
13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf
13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf
13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf
allwayscollection
 
13. It is year 1225 and Easter Islanders are crafting their now well.pdf
13. It is year 1225 and Easter Islanders are crafting their now well.pdf13. It is year 1225 and Easter Islanders are crafting their now well.pdf
13. It is year 1225 and Easter Islanders are crafting their now well.pdf
allwayscollection
 
20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf
20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf
20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf
allwayscollection
 
2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf
2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf
2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf
allwayscollection
 
2.4 CollaboratorsThe company should also understand the relationsh.pdf
2.4 CollaboratorsThe company should also understand the relationsh.pdf2.4 CollaboratorsThe company should also understand the relationsh.pdf
2.4 CollaboratorsThe company should also understand the relationsh.pdf
allwayscollection
 
2.5�108 concentration.pdf
2.5�108 concentration.pdf2.5�108 concentration.pdf
2.5�108 concentration.pdf
allwayscollection
 
2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf
2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf
2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf
allwayscollection
 
2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf
2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf
2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf
allwayscollection
 
2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf
2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf
2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf
allwayscollection
 
2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf
2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf
2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf
allwayscollection
 
2. Pollutant transport i) Which stability criterion is lessening and.pdf
2. Pollutant transport i) Which stability criterion is lessening and.pdf2. Pollutant transport i) Which stability criterion is lessening and.pdf
2. Pollutant transport i) Which stability criterion is lessening and.pdf
allwayscollection
 
2. Numerous historical and recent events provide examples of leaders.pdf
2. Numerous historical and recent events provide examples of leaders.pdf2. Numerous historical and recent events provide examples of leaders.pdf
2. Numerous historical and recent events provide examples of leaders.pdf
allwayscollection
 
2. Explain how charisma can produce both positive and negative outc.pdf
2.  Explain how charisma can produce both positive and negative outc.pdf2.  Explain how charisma can produce both positive and negative outc.pdf
2. Explain how charisma can produce both positive and negative outc.pdf
allwayscollection
 
2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf
2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf
2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf
allwayscollection
 
2. How did ChotuKool conducted research (collected primary data) abo.pdf
2. How did ChotuKool conducted research (collected primary data) abo.pdf2. How did ChotuKool conducted research (collected primary data) abo.pdf
2. How did ChotuKool conducted research (collected primary data) abo.pdf
allwayscollection
 

More from allwayscollection (20)

15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf
15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf
15. A principios de 2021, Waterway Industries hab�a retenido gananci.pdf
 
142 Cranlal Nerwe Jumetion.pdf
142 Cranlal Nerwe Jumetion.pdf142 Cranlal Nerwe Jumetion.pdf
142 Cranlal Nerwe Jumetion.pdf
 
14. Essay Using the following information f�Using the followi.pdf
14. Essay Using the following information f�Using the followi.pdf14. Essay Using the following information f�Using the followi.pdf
14. Essay Using the following information f�Using the followi.pdf
 
14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf
14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf
14. Mary es una maestra de secundaria jubilada de 72 a�os. Ella in.pdf
 
13. Alan, Bruce and Connie want to combine their property in a new c.pdf
13. Alan, Bruce and Connie want to combine their property in a new c.pdf13. Alan, Bruce and Connie want to combine their property in a new c.pdf
13. Alan, Bruce and Connie want to combine their property in a new c.pdf
 
13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf
13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf
13. La revisi�n judicial de las decisiones de las agencias gira en t.pdf
 
13. It is year 1225 and Easter Islanders are crafting their now well.pdf
13. It is year 1225 and Easter Islanders are crafting their now well.pdf13. It is year 1225 and Easter Islanders are crafting their now well.pdf
13. It is year 1225 and Easter Islanders are crafting their now well.pdf
 
20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf
20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf
20) The antibiotic penicillin is isolated from ________.A) B. subt.pdf
 
2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf
2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf
2.1 Estudio de caso un l�der emergente Tim T. retrata su vida com.pdf
 
2.4 CollaboratorsThe company should also understand the relationsh.pdf
2.4 CollaboratorsThe company should also understand the relationsh.pdf2.4 CollaboratorsThe company should also understand the relationsh.pdf
2.4 CollaboratorsThe company should also understand the relationsh.pdf
 
2.5�108 concentration.pdf
2.5�108 concentration.pdf2.5�108 concentration.pdf
2.5�108 concentration.pdf
 
2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf
2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf
2. �Cu�l de los siguientes no es un rasgo de alta inteligencia cultu.pdf
 
2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf
2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf
2. Use uno de los enfoques de generaci�n de ideas presentados en est.pdf
 
2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf
2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf
2. Section 2. Implementing functionality in the PersonEntry. (1.5 ma.pdf
 
2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf
2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf
2. Riesgo de los empleados a. �C�mo podr�a ayudar a una organizaci.pdf
 
2. Pollutant transport i) Which stability criterion is lessening and.pdf
2. Pollutant transport i) Which stability criterion is lessening and.pdf2. Pollutant transport i) Which stability criterion is lessening and.pdf
2. Pollutant transport i) Which stability criterion is lessening and.pdf
 
2. Numerous historical and recent events provide examples of leaders.pdf
2. Numerous historical and recent events provide examples of leaders.pdf2. Numerous historical and recent events provide examples of leaders.pdf
2. Numerous historical and recent events provide examples of leaders.pdf
 
2. Explain how charisma can produce both positive and negative outc.pdf
2.  Explain how charisma can produce both positive and negative outc.pdf2.  Explain how charisma can produce both positive and negative outc.pdf
2. Explain how charisma can produce both positive and negative outc.pdf
 
2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf
2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf
2. IQ scores have a mean of 100 and a standard deviation of 16. Albe.pdf
 
2. How did ChotuKool conducted research (collected primary data) abo.pdf
2. How did ChotuKool conducted research (collected primary data) abo.pdf2. How did ChotuKool conducted research (collected primary data) abo.pdf
2. How did ChotuKool conducted research (collected primary data) abo.pdf
 

Recently uploaded

Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
EduSkills OECD
 
Year-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 DashboardYear-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 Dashboard
Celine George
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
ibtesaam huma
 
NAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource BookNAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource Book
lakitawilson
 
Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024
Elizabeth Walsh
 
How to Manage Line Discount in Odoo 17 POS
How to Manage Line Discount in Odoo 17 POSHow to Manage Line Discount in Odoo 17 POS
How to Manage Line Discount in Odoo 17 POS
Celine George
 
matatag curriculum education for Kindergarten
matatag curriculum education for Kindergartenmatatag curriculum education for Kindergarten
matatag curriculum education for Kindergarten
SarahAlie1
 
Individual Performance Commitment Review Form-Developmental Plan.docx
Individual Performance Commitment Review Form-Developmental Plan.docxIndividual Performance Commitment Review Form-Developmental Plan.docx
Individual Performance Commitment Review Form-Developmental Plan.docx
monicaaringo1
 
The Cruelty of Animal Testing in the Industry.pdf
The Cruelty of Animal Testing in the Industry.pdfThe Cruelty of Animal Testing in the Industry.pdf
The Cruelty of Animal Testing in the Industry.pdf
luzmilaglez334
 
2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference
KlettWorldLanguages
 
1-NLC-MATH7-Consolidation-Lesson1 2024.pptx
1-NLC-MATH7-Consolidation-Lesson1 2024.pptx1-NLC-MATH7-Consolidation-Lesson1 2024.pptx
1-NLC-MATH7-Consolidation-Lesson1 2024.pptx
AnneMarieJacildo
 
How to Add a Filter in the Odoo 17 - Odoo 17 Slides
How to Add a Filter in the Odoo 17 - Odoo 17 SlidesHow to Add a Filter in the Odoo 17 - Odoo 17 Slides
How to Add a Filter in the Odoo 17 - Odoo 17 Slides
Celine George
 
Kesadaran_Berbangsa_dan_Bernegara_Nasion.pptx
Kesadaran_Berbangsa_dan_Bernegara_Nasion.pptxKesadaran_Berbangsa_dan_Bernegara_Nasion.pptx
Kesadaran_Berbangsa_dan_Bernegara_Nasion.pptx
artenzmartenkai
 
modul ajar kelas x bahasa inggris 2024-2025
modul ajar kelas x bahasa inggris 2024-2025modul ajar kelas x bahasa inggris 2024-2025
modul ajar kelas x bahasa inggris 2024-2025
NurFitriah45
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
heathfieldcps1
 
Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)
Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)
Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)
Cátedra Banco Santander
 
Genetics Teaching Plan: Dr.Kshirsagar R.V.
Genetics Teaching Plan: Dr.Kshirsagar R.V.Genetics Teaching Plan: Dr.Kshirsagar R.V.
Genetics Teaching Plan: Dr.Kshirsagar R.V.
DrRavindrakshirsagar1
 
How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
Celine George
 
(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening
MJDuyan
 
How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17
Celine George
 

Recently uploaded (20)

Webinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional SkillsWebinar Innovative assessments for SOcial Emotional Skills
Webinar Innovative assessments for SOcial Emotional Skills
 
Year-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 DashboardYear-to-Date Filter in Odoo 17 Dashboard
Year-to-Date Filter in Odoo 17 Dashboard
 
Principles of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptxPrinciples of Roods Approach!!!!!!!.pptx
Principles of Roods Approach!!!!!!!.pptx
 
NAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource BookNAEYC Code of Ethical Conduct Resource Book
NAEYC Code of Ethical Conduct Resource Book
 
Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024Howe Writing Center - Orientation Summer 2024
Howe Writing Center - Orientation Summer 2024
 
How to Manage Line Discount in Odoo 17 POS
How to Manage Line Discount in Odoo 17 POSHow to Manage Line Discount in Odoo 17 POS
How to Manage Line Discount in Odoo 17 POS
 
matatag curriculum education for Kindergarten
matatag curriculum education for Kindergartenmatatag curriculum education for Kindergarten
matatag curriculum education for Kindergarten
 
Individual Performance Commitment Review Form-Developmental Plan.docx
Individual Performance Commitment Review Form-Developmental Plan.docxIndividual Performance Commitment Review Form-Developmental Plan.docx
Individual Performance Commitment Review Form-Developmental Plan.docx
 
The Cruelty of Animal Testing in the Industry.pdf
The Cruelty of Animal Testing in the Industry.pdfThe Cruelty of Animal Testing in the Industry.pdf
The Cruelty of Animal Testing in the Industry.pdf
 
2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference2024 KWL Back 2 School Summer Conference
2024 KWL Back 2 School Summer Conference
 
1-NLC-MATH7-Consolidation-Lesson1 2024.pptx
1-NLC-MATH7-Consolidation-Lesson1 2024.pptx1-NLC-MATH7-Consolidation-Lesson1 2024.pptx
1-NLC-MATH7-Consolidation-Lesson1 2024.pptx
 
How to Add a Filter in the Odoo 17 - Odoo 17 Slides
How to Add a Filter in the Odoo 17 - Odoo 17 SlidesHow to Add a Filter in the Odoo 17 - Odoo 17 Slides
How to Add a Filter in the Odoo 17 - Odoo 17 Slides
 
Kesadaran_Berbangsa_dan_Bernegara_Nasion.pptx
Kesadaran_Berbangsa_dan_Bernegara_Nasion.pptxKesadaran_Berbangsa_dan_Bernegara_Nasion.pptx
Kesadaran_Berbangsa_dan_Bernegara_Nasion.pptx
 
modul ajar kelas x bahasa inggris 2024-2025
modul ajar kelas x bahasa inggris 2024-2025modul ajar kelas x bahasa inggris 2024-2025
modul ajar kelas x bahasa inggris 2024-2025
 
The basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptxThe basics of sentences session 10pptx.pptx
The basics of sentences session 10pptx.pptx
 
Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)
Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)
Cómo crear video-tutoriales con ScreenPal (2 de julio de 2024)
 
Genetics Teaching Plan: Dr.Kshirsagar R.V.
Genetics Teaching Plan: Dr.Kshirsagar R.V.Genetics Teaching Plan: Dr.Kshirsagar R.V.
Genetics Teaching Plan: Dr.Kshirsagar R.V.
 
How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17How to Create Sequence Numbers in Odoo 17
How to Create Sequence Numbers in Odoo 17
 
(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening(T.L.E.) Agriculture: Essentials of Gardening
(T.L.E.) Agriculture: Essentials of Gardening
 
How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17How To Create a Transient Model in Odoo 17
How To Create a Transient Model in Odoo 17
 

2. Write a Python program to remove characters that have odd index v.pdf

  • 1. 2. Write a Python program to remove characters that have odd index values in a given string. 3. Write a Python program to count the occurrences of each word in a given sentence. 4 Write a Python script that takes input from the user and displays that input back in upper and lower cases. 5. Write a Python program that accepts a comma-separated sequence of words as input and prints the distinct words in sorted form (alphanumerically). Sample Words : red, white, black, red, green, black Expected Result : black, green, red, white,red