SlideShare a Scribd company logo
1 of 1
Download to read offline
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.pdfallwayscollection
 
142 Cranlal Nerwe Jumetion.pdf
142 Cranlal Nerwe Jumetion.pdf142 Cranlal Nerwe Jumetion.pdf
142 Cranlal Nerwe Jumetion.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 
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.pdfallwayscollection
 

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

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

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