SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Code Challenge: Functions (2)
Define a function process_string(s) with the following characteristics:
It accepts a string s as a parameter
I returns a list with the following characteristics:
The string s is split into a list of words.
If the word is in a position with an even index, it is returned in lower case.
If the word is in a position with an odd index, it is returned in upper case
Note that:
You can test if x is even using the expression x % 2 == 0, which will return True if x is even and
False otherwise.
0 is an even number
When testing functions, you may add diagnostic code to your Python file and examine the output
using the Run button. For example, you may wish to add a line like print(process_string("This is
my test String")) which should return a list ['this', 'IS', 'my', 'TEST', 'string'].
However, the Mark button will test your function with random sentences. This ensures the function
works as desired.

Weitere ähnliche Inhalte

Ähnlich wie Code Challenge Functions 2 Define a function process_stri.pdf

This first assignment will focus on coding in Python, applying kno.docx
This first assignment will focus on coding in Python, applying kno.docxThis first assignment will focus on coding in Python, applying kno.docx
This first assignment will focus on coding in Python, applying kno.docxabhi353063
 
Test driven development
Test driven developmentTest driven development
Test driven developmentXebia India
 
Python programming workshop
Python programming workshopPython programming workshop
Python programming workshopBAINIDA
 
Quick python reference
Quick python referenceQuick python reference
Quick python referenceJayant Parida
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdffazilfootsteps
 
Bsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsBsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsRai University
 
Introducing Pattern Matching in Scala
 Introducing Pattern Matching  in Scala Introducing Pattern Matching  in Scala
Introducing Pattern Matching in ScalaAyush Mishra
 
This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfadmin447081
 
Python for Machine Learning
Python for Machine LearningPython for Machine Learning
Python for Machine LearningStudent
 
Please look at the problems I am having which are listed below: Write a prog...
Please look at the problems I am having which are listed below:  Write a prog...Please look at the problems I am having which are listed below:  Write a prog...
Please look at the problems I am having which are listed below: Write a prog...licservernoida
 
INTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONS
INTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONSINTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONS
INTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONSKalaivaniD12
 
PYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptxPYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptxgeorgejustymirobi1
 
Btech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and stringsBtech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and stringsRai University
 
Functions torage class and array and strings-
Functions torage class and array and strings-Functions torage class and array and strings-
Functions torage class and array and strings-aneebkmct
 
function, storage class and array and strings
 function, storage class and array and strings function, storage class and array and strings
function, storage class and array and stringsRai University
 
Mcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsMcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsRai University
 

Ähnlich wie Code Challenge Functions 2 Define a function process_stri.pdf (20)

This first assignment will focus on coding in Python, applying kno.docx
This first assignment will focus on coding in Python, applying kno.docxThis first assignment will focus on coding in Python, applying kno.docx
This first assignment will focus on coding in Python, applying kno.docx
 
Advance excel
Advance excelAdvance excel
Advance excel
 
130706266060138191
130706266060138191130706266060138191
130706266060138191
 
Test driven development
Test driven developmentTest driven development
Test driven development
 
Python programming workshop
Python programming workshopPython programming workshop
Python programming workshop
 
Quick python reference
Quick python referenceQuick python reference
Quick python reference
 
Pytho dictionaries
Pytho dictionaries Pytho dictionaries
Pytho dictionaries
 
Maxbox starter
Maxbox starterMaxbox starter
Maxbox starter
 
Please write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdfPlease write a code in JAVA to do line editor..Your program will b.pdf
Please write a code in JAVA to do line editor..Your program will b.pdf
 
Bsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and stringsBsc cs i pic u-4 function, storage class and array and strings
Bsc cs i pic u-4 function, storage class and array and strings
 
Introducing Pattern Matching in Scala
 Introducing Pattern Matching  in Scala Introducing Pattern Matching  in Scala
Introducing Pattern Matching in Scala
 
This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdf
 
Python for Machine Learning
Python for Machine LearningPython for Machine Learning
Python for Machine Learning
 
Please look at the problems I am having which are listed below: Write a prog...
Please look at the problems I am having which are listed below:  Write a prog...Please look at the problems I am having which are listed below:  Write a prog...
Please look at the problems I am having which are listed below: Write a prog...
 
INTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONS
INTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONSINTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONS
INTRODUCTION TO PYTHON PROGRMMING AND FUNCTIONS
 
PYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptxPYTHON-PROGRAMMING-UNIT-II (1).pptx
PYTHON-PROGRAMMING-UNIT-II (1).pptx
 
Btech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and stringsBtech i pic u-4 function, storage class and array and strings
Btech i pic u-4 function, storage class and array and strings
 
Functions torage class and array and strings-
Functions torage class and array and strings-Functions torage class and array and strings-
Functions torage class and array and strings-
 
function, storage class and array and strings
 function, storage class and array and strings function, storage class and array and strings
function, storage class and array and strings
 
Mcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and stringsMcai pic u 4 function, storage class and array and strings
Mcai pic u 4 function, storage class and array and strings
 

Mehr von ablazeaepl

Marin Companys general ledger indicates a cash balance of .pdf
Marin Companys general ledger indicates a cash balance of .pdfMarin Companys general ledger indicates a cash balance of .pdf
Marin Companys general ledger indicates a cash balance of .pdfablazeaepl
 
Homework Section 34 Contingency Tables Score 07 07 an.pdf
Homework Section 34 Contingency Tables Score 07 07 an.pdfHomework Section 34 Contingency Tables Score 07 07 an.pdf
Homework Section 34 Contingency Tables Score 07 07 an.pdfablazeaepl
 
how write introduction and conclusion of case study OnBoar.pdf
how write introduction and conclusion of case study  OnBoar.pdfhow write introduction and conclusion of case study  OnBoar.pdf
how write introduction and conclusion of case study OnBoar.pdfablazeaepl
 
Finish the 2 TODO in the ASM Language A palindrome is a w.pdf
Finish the 2 TODO in the ASM Language A palindrome is a w.pdfFinish the 2 TODO in the ASM Language A palindrome is a w.pdf
Finish the 2 TODO in the ASM Language A palindrome is a w.pdfablazeaepl
 
For each question provide a one to two sentences per questi.pdf
For each question provide a one to two sentences per questi.pdfFor each question provide a one to two sentences per questi.pdf
For each question provide a one to two sentences per questi.pdfablazeaepl
 
Enter the letter of the appropriate term from the list below.pdf
Enter the letter of the appropriate term from the list below.pdfEnter the letter of the appropriate term from the list below.pdf
Enter the letter of the appropriate term from the list below.pdfablazeaepl
 
Ghana Technology University College IT213 Systems Administr.pdf
Ghana Technology University College IT213 Systems Administr.pdfGhana Technology University College IT213 Systems Administr.pdf
Ghana Technology University College IT213 Systems Administr.pdfablazeaepl
 
decimal places R2Ra2 b Does the estimated regression e.pdf
decimal places R2Ra2 b Does the estimated regression e.pdfdecimal places R2Ra2 b Does the estimated regression e.pdf
decimal places R2Ra2 b Does the estimated regression e.pdfablazeaepl
 
Describir la funcin de cada generacin en el ciclo de vida .pdf
Describir la funcin de cada generacin en el ciclo de vida .pdfDescribir la funcin de cada generacin en el ciclo de vida .pdf
Describir la funcin de cada generacin en el ciclo de vida .pdfablazeaepl
 
Consider the planned expenditure curve PAE in the figure b.pdf
Consider the planned expenditure curve PAE in the figure b.pdfConsider the planned expenditure curve PAE in the figure b.pdf
Consider the planned expenditure curve PAE in the figure b.pdfablazeaepl
 
Consider the adjacency matrix Apath dM8639c0225.pdf
Consider the adjacency matrix Apath dM8639c0225.pdfConsider the adjacency matrix Apath dM8639c0225.pdf
Consider the adjacency matrix Apath dM8639c0225.pdfablazeaepl
 
Brenda and Miguel share greatgrandparents and are consideri.pdf
Brenda and Miguel share greatgrandparents and are consideri.pdfBrenda and Miguel share greatgrandparents and are consideri.pdf
Brenda and Miguel share greatgrandparents and are consideri.pdfablazeaepl
 
Adam Simmons de 25 aos tuvo un accidente de moto de nieve.pdf
Adam Simmons de 25 aos tuvo un accidente de moto de nieve.pdfAdam Simmons de 25 aos tuvo un accidente de moto de nieve.pdf
Adam Simmons de 25 aos tuvo un accidente de moto de nieve.pdfablazeaepl
 
5 Suppose that X1X2 follows a BVN where 12 and .pdf
5 Suppose that X1X2 follows a BVN where 12 and .pdf5 Suppose that X1X2 follows a BVN where 12 and .pdf
5 Suppose that X1X2 follows a BVN where 12 and .pdfablazeaepl
 
5 Create an Animal class as the base class with member fun.pdf
5 Create an Animal class as the base class with member fun.pdf5 Create an Animal class as the base class with member fun.pdf
5 Create an Animal class as the base class with member fun.pdfablazeaepl
 
27 Which of the following statements about Consumptive Wate.pdf
27 Which of the following statements about Consumptive Wate.pdf27 Which of the following statements about Consumptive Wate.pdf
27 Which of the following statements about Consumptive Wate.pdfablazeaepl
 
217 Global warming A research poll asked 1603 Americans F.pdf
217 Global warming A research poll asked 1603 Americans F.pdf217 Global warming A research poll asked 1603 Americans F.pdf
217 Global warming A research poll asked 1603 Americans F.pdfablazeaepl
 
Sunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdf
Sunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdfSunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdf
Sunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdfablazeaepl
 
The first part of the final exam itself is an exercise in th.pdf
The first part of the final exam itself is an exercise in th.pdfThe first part of the final exam itself is an exercise in th.pdf
The first part of the final exam itself is an exercise in th.pdfablazeaepl
 
Los cientficos sociales utilizan la estadstica inferencial.pdf
Los cientficos sociales utilizan la estadstica inferencial.pdfLos cientficos sociales utilizan la estadstica inferencial.pdf
Los cientficos sociales utilizan la estadstica inferencial.pdfablazeaepl
 

Mehr von ablazeaepl (20)

Marin Companys general ledger indicates a cash balance of .pdf
Marin Companys general ledger indicates a cash balance of .pdfMarin Companys general ledger indicates a cash balance of .pdf
Marin Companys general ledger indicates a cash balance of .pdf
 
Homework Section 34 Contingency Tables Score 07 07 an.pdf
Homework Section 34 Contingency Tables Score 07 07 an.pdfHomework Section 34 Contingency Tables Score 07 07 an.pdf
Homework Section 34 Contingency Tables Score 07 07 an.pdf
 
how write introduction and conclusion of case study OnBoar.pdf
how write introduction and conclusion of case study  OnBoar.pdfhow write introduction and conclusion of case study  OnBoar.pdf
how write introduction and conclusion of case study OnBoar.pdf
 
Finish the 2 TODO in the ASM Language A palindrome is a w.pdf
Finish the 2 TODO in the ASM Language A palindrome is a w.pdfFinish the 2 TODO in the ASM Language A palindrome is a w.pdf
Finish the 2 TODO in the ASM Language A palindrome is a w.pdf
 
For each question provide a one to two sentences per questi.pdf
For each question provide a one to two sentences per questi.pdfFor each question provide a one to two sentences per questi.pdf
For each question provide a one to two sentences per questi.pdf
 
Enter the letter of the appropriate term from the list below.pdf
Enter the letter of the appropriate term from the list below.pdfEnter the letter of the appropriate term from the list below.pdf
Enter the letter of the appropriate term from the list below.pdf
 
Ghana Technology University College IT213 Systems Administr.pdf
Ghana Technology University College IT213 Systems Administr.pdfGhana Technology University College IT213 Systems Administr.pdf
Ghana Technology University College IT213 Systems Administr.pdf
 
decimal places R2Ra2 b Does the estimated regression e.pdf
decimal places R2Ra2 b Does the estimated regression e.pdfdecimal places R2Ra2 b Does the estimated regression e.pdf
decimal places R2Ra2 b Does the estimated regression e.pdf
 
Describir la funcin de cada generacin en el ciclo de vida .pdf
Describir la funcin de cada generacin en el ciclo de vida .pdfDescribir la funcin de cada generacin en el ciclo de vida .pdf
Describir la funcin de cada generacin en el ciclo de vida .pdf
 
Consider the planned expenditure curve PAE in the figure b.pdf
Consider the planned expenditure curve PAE in the figure b.pdfConsider the planned expenditure curve PAE in the figure b.pdf
Consider the planned expenditure curve PAE in the figure b.pdf
 
Consider the adjacency matrix Apath dM8639c0225.pdf
Consider the adjacency matrix Apath dM8639c0225.pdfConsider the adjacency matrix Apath dM8639c0225.pdf
Consider the adjacency matrix Apath dM8639c0225.pdf
 
Brenda and Miguel share greatgrandparents and are consideri.pdf
Brenda and Miguel share greatgrandparents and are consideri.pdfBrenda and Miguel share greatgrandparents and are consideri.pdf
Brenda and Miguel share greatgrandparents and are consideri.pdf
 
Adam Simmons de 25 aos tuvo un accidente de moto de nieve.pdf
Adam Simmons de 25 aos tuvo un accidente de moto de nieve.pdfAdam Simmons de 25 aos tuvo un accidente de moto de nieve.pdf
Adam Simmons de 25 aos tuvo un accidente de moto de nieve.pdf
 
5 Suppose that X1X2 follows a BVN where 12 and .pdf
5 Suppose that X1X2 follows a BVN where 12 and .pdf5 Suppose that X1X2 follows a BVN where 12 and .pdf
5 Suppose that X1X2 follows a BVN where 12 and .pdf
 
5 Create an Animal class as the base class with member fun.pdf
5 Create an Animal class as the base class with member fun.pdf5 Create an Animal class as the base class with member fun.pdf
5 Create an Animal class as the base class with member fun.pdf
 
27 Which of the following statements about Consumptive Wate.pdf
27 Which of the following statements about Consumptive Wate.pdf27 Which of the following statements about Consumptive Wate.pdf
27 Which of the following statements about Consumptive Wate.pdf
 
217 Global warming A research poll asked 1603 Americans F.pdf
217 Global warming A research poll asked 1603 Americans F.pdf217 Global warming A research poll asked 1603 Americans F.pdf
217 Global warming A research poll asked 1603 Americans F.pdf
 
Sunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdf
Sunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdfSunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdf
Sunland Inc Dec 31 Interest Expense Bonds PayableWhen .pdf
 
The first part of the final exam itself is an exercise in th.pdf
The first part of the final exam itself is an exercise in th.pdfThe first part of the final exam itself is an exercise in th.pdf
The first part of the final exam itself is an exercise in th.pdf
 
Los cientficos sociales utilizan la estadstica inferencial.pdf
Los cientficos sociales utilizan la estadstica inferencial.pdfLos cientficos sociales utilizan la estadstica inferencial.pdf
Los cientficos sociales utilizan la estadstica inferencial.pdf
 

Kürzlich hochgeladen

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
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
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
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
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Kürzlich hochgeladen (20)

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
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
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
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
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

Code Challenge Functions 2 Define a function process_stri.pdf

  • 1. Code Challenge: Functions (2) Define a function process_string(s) with the following characteristics: It accepts a string s as a parameter I returns a list with the following characteristics: The string s is split into a list of words. If the word is in a position with an even index, it is returned in lower case. If the word is in a position with an odd index, it is returned in upper case Note that: You can test if x is even using the expression x % 2 == 0, which will return True if x is even and False otherwise. 0 is an even number When testing functions, you may add diagnostic code to your Python file and examine the output using the Run button. For example, you may wish to add a line like print(process_string("This is my test String")) which should return a list ['this', 'IS', 'my', 'TEST', 'string']. However, the Mark button will test your function with random sentences. This ensures the function works as desired.