SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
python help please. not sure why code is not working for the input displayed at the bottom.
currently using this code
for i in range(dataLength) :
if (i!=len(data)-1):
print(data[i],end=',')
else:
print(data[i],end='#')
Brightspace would look like this: { ist element 1},{1 ist element 2},{1 ist element 3},,{ last list
element }# You are going to take the data from the list provided via input and output its contents in
this format. Details Input - Program input is handled for you. After some initial processing (by me),
you will be left with the following: - an array called data (with elements of the String data type).
Processing/Output - Loop through the array data - Output the elements from the array such that
each element is separated by a comma and the last element is followed by the the character
AtOutput: Expected: # Feedback: Input: string EOF

Contenu connexe

Similaire à Python code not outputting list elements correctly with commas and hash character

You are required to open an input file (shown below) then read one c.pdf
You are required to open an input file (shown below) then read one c.pdfYou are required to open an input file (shown below) then read one c.pdf
You are required to open an input file (shown below) then read one c.pdfarpaqindia
 
Searching, Sorting and Complexity analysis in DS.pdf
Searching, Sorting and Complexity analysis in DS.pdfSearching, Sorting and Complexity analysis in DS.pdf
Searching, Sorting and Complexity analysis in DS.pdfAkshatMehrotra14
 
Whiteboarding Coding Challenges in Python
Whiteboarding Coding Challenges in PythonWhiteboarding Coding Challenges in Python
Whiteboarding Coding Challenges in PythonAndrew Ferlitsch
 
Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductionsirshad17
 
UNIT III PYTHON.pptx python basic ppt ppt
UNIT III PYTHON.pptx python basic ppt pptUNIT III PYTHON.pptx python basic ppt ppt
UNIT III PYTHON.pptx python basic ppt pptSuganthiDPSGRKCW
 
Data structures: linear lists
Data structures: linear listsData structures: linear lists
Data structures: linear listsToniyaP1
 
CS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docxCS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docxmydrynan
 
RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptxRANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptxOut Cast
 
DSA- Unit III- STACK AND QUEUE
DSA- Unit III- STACK AND QUEUEDSA- Unit III- STACK AND QUEUE
DSA- Unit III- STACK AND QUEUEswathirajstar
 
singly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malavsingly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malavRohit malav
 
Lecture 3 intro2data
Lecture 3 intro2dataLecture 3 intro2data
Lecture 3 intro2dataJohnson Ubah
 

Similaire à Python code not outputting list elements correctly with commas and hash character (20)

You are required to open an input file (shown below) then read one c.pdf
You are required to open an input file (shown below) then read one c.pdfYou are required to open an input file (shown below) then read one c.pdf
You are required to open an input file (shown below) then read one c.pdf
 
Adt of lists
Adt of listsAdt of lists
Adt of lists
 
Searching, Sorting and Complexity analysis in DS.pdf
Searching, Sorting and Complexity analysis in DS.pdfSearching, Sorting and Complexity analysis in DS.pdf
Searching, Sorting and Complexity analysis in DS.pdf
 
Whiteboarding Coding Challenges in Python
Whiteboarding Coding Challenges in PythonWhiteboarding Coding Challenges in Python
Whiteboarding Coding Challenges in Python
 
Ch 1 intriductions
Ch 1 intriductionsCh 1 intriductions
Ch 1 intriductions
 
UNIT III PYTHON.pptx python basic ppt ppt
UNIT III PYTHON.pptx python basic ppt pptUNIT III PYTHON.pptx python basic ppt ppt
UNIT III PYTHON.pptx python basic ppt ppt
 
Data structures: linear lists
Data structures: linear listsData structures: linear lists
Data structures: linear lists
 
CS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docxCS10 Python Programming Homework 4 40 points Lists, Tupl.docx
CS10 Python Programming Homework 4 40 points Lists, Tupl.docx
 
DS UNIT 1.pdf
DS UNIT 1.pdfDS UNIT 1.pdf
DS UNIT 1.pdf
 
DS UNIT 1.pdf
DS UNIT 1.pdfDS UNIT 1.pdf
DS UNIT 1.pdf
 
RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptxRANDOMISATION-NUMERICAL METHODS  FOR ENGINEERING.pptx
RANDOMISATION-NUMERICAL METHODS FOR ENGINEERING.pptx
 
INDEX SORT
INDEX SORTINDEX SORT
INDEX SORT
 
DSA- Unit III- STACK AND QUEUE
DSA- Unit III- STACK AND QUEUEDSA- Unit III- STACK AND QUEUE
DSA- Unit III- STACK AND QUEUE
 
Data structures in c#
Data structures in c#Data structures in c#
Data structures in c#
 
singly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malavsingly link list project in dsa.....by rohit malav
singly link list project in dsa.....by rohit malav
 
Lecture 3 intro2data
Lecture 3 intro2dataLecture 3 intro2data
Lecture 3 intro2data
 
Data structure
Data structureData structure
Data structure
 
What is data structure
What is data structureWhat is data structure
What is data structure
 
Stack and queue
Stack and queueStack and queue
Stack and queue
 
Week 2 - Data Structures and Algorithms
Week 2 - Data Structures and AlgorithmsWeek 2 - Data Structures and Algorithms
Week 2 - Data Structures and Algorithms
 

Plus de adyardrpradeep

Q1 Which of the following is NOT considered ossification co.pdf
Q1 Which of the following is NOT considered ossification co.pdfQ1 Which of the following is NOT considered ossification co.pdf
Q1 Which of the following is NOT considered ossification co.pdfadyardrpradeep
 
Q1 Your goal is to build a model to predict how people will.pdf
Q1 Your goal is to build a model to predict how people will.pdfQ1 Your goal is to build a model to predict how people will.pdf
Q1 Your goal is to build a model to predict how people will.pdfadyardrpradeep
 
Q24 Conduct a risk analysis and management process for the.pdf
Q24 Conduct a risk analysis and management process for the.pdfQ24 Conduct a risk analysis and management process for the.pdf
Q24 Conduct a risk analysis and management process for the.pdfadyardrpradeep
 
Q2 Design the pseudocode to print a binary tree At the vis.pdf
Q2 Design the pseudocode to print a binary tree At the vis.pdfQ2 Design the pseudocode to print a binary tree At the vis.pdf
Q2 Design the pseudocode to print a binary tree At the vis.pdfadyardrpradeep
 
Q2 Let X denote the amount of time for which a book onehou.pdf
Q2 Let X denote the amount of time for which a book onehou.pdfQ2 Let X denote the amount of time for which a book onehou.pdf
Q2 Let X denote the amount of time for which a book onehou.pdfadyardrpradeep
 
Q2 Given the total cost function Ca+bY with agt00ltb.pdf
Q2 Given the total cost function Ca+bY with agt00ltb.pdfQ2 Given the total cost function Ca+bY with agt00ltb.pdf
Q2 Given the total cost function Ca+bY with agt00ltb.pdfadyardrpradeep
 
Q2 A sample space S consists of five simple events with the.pdf
Q2 A sample space S consists of five simple events with the.pdfQ2 A sample space S consists of five simple events with the.pdf
Q2 A sample space S consists of five simple events with the.pdfadyardrpradeep
 
Q2 ClothsforYou plc is a medium sized UK listed interneton.pdf
Q2 ClothsforYou plc is a medium sized UK listed interneton.pdfQ2 ClothsforYou plc is a medium sized UK listed interneton.pdf
Q2 ClothsforYou plc is a medium sized UK listed interneton.pdfadyardrpradeep
 
Q1 Shale is a sedimentary rock a protolith of slate whic.pdf
Q1 Shale is a sedimentary rock a protolith of slate whic.pdfQ1 Shale is a sedimentary rock a protolith of slate whic.pdf
Q1 Shale is a sedimentary rock a protolith of slate whic.pdfadyardrpradeep
 
Q2 Mention whether the following instructions are right or.pdf
Q2  Mention whether the following instructions are right or.pdfQ2  Mention whether the following instructions are right or.pdf
Q2 Mention whether the following instructions are right or.pdfadyardrpradeep
 
Q2 5 marks An educational researcher believes that the me.pdf
Q2 5 marks An educational researcher believes that the me.pdfQ2 5 marks An educational researcher believes that the me.pdf
Q2 5 marks An educational researcher believes that the me.pdfadyardrpradeep
 
Q1 We read many accounts this week of what emerging indepen.pdf
Q1 We read many accounts this week of what emerging indepen.pdfQ1 We read many accounts this week of what emerging indepen.pdf
Q1 We read many accounts this week of what emerging indepen.pdfadyardrpradeep
 
Q1Unaudited information about significant events and uncer.pdf
Q1Unaudited information about significant events and uncer.pdfQ1Unaudited information about significant events and uncer.pdf
Q1Unaudited information about significant events and uncer.pdfadyardrpradeep
 
Q1413 What is the structure in coordinates J25 and J10 .pdf
Q1413 What is the structure in coordinates J25 and J10 .pdfQ1413 What is the structure in coordinates J25 and J10 .pdf
Q1413 What is the structure in coordinates J25 and J10 .pdfadyardrpradeep
 
q10 Euromarket investment and fund raising A USbased mult.pdf
q10 Euromarket investment and fund raising A USbased mult.pdfq10 Euromarket investment and fund raising A USbased mult.pdf
q10 Euromarket investment and fund raising A USbased mult.pdfadyardrpradeep
 
Q10 What is the value of the variable message in the foll.pdf
Q10 What is the value of the variable message in the foll.pdfQ10 What is the value of the variable message in the foll.pdf
Q10 What is the value of the variable message in the foll.pdfadyardrpradeep
 
Q1 Write a python function that gets a list as an input an.pdf
Q1 Write a python function that gets a list as an input an.pdfQ1 Write a python function that gets a list as an input an.pdf
Q1 Write a python function that gets a list as an input an.pdfadyardrpradeep
 
Q10 Calculate return on capital when earnings before interes.pdf
Q10 Calculate return on capital when earnings before interes.pdfQ10 Calculate return on capital when earnings before interes.pdf
Q10 Calculate return on capital when earnings before interes.pdfadyardrpradeep
 
Q1 Write the genotype of an individual who is homozygous re.pdf
Q1 Write the genotype of an individual who is homozygous re.pdfQ1 Write the genotype of an individual who is homozygous re.pdf
Q1 Write the genotype of an individual who is homozygous re.pdfadyardrpradeep
 
Q1 Which of the following statements is true about perfectl.pdf
Q1 Which of the following statements is true about perfectl.pdfQ1 Which of the following statements is true about perfectl.pdf
Q1 Which of the following statements is true about perfectl.pdfadyardrpradeep
 

Plus de adyardrpradeep (20)

Q1 Which of the following is NOT considered ossification co.pdf
Q1 Which of the following is NOT considered ossification co.pdfQ1 Which of the following is NOT considered ossification co.pdf
Q1 Which of the following is NOT considered ossification co.pdf
 
Q1 Your goal is to build a model to predict how people will.pdf
Q1 Your goal is to build a model to predict how people will.pdfQ1 Your goal is to build a model to predict how people will.pdf
Q1 Your goal is to build a model to predict how people will.pdf
 
Q24 Conduct a risk analysis and management process for the.pdf
Q24 Conduct a risk analysis and management process for the.pdfQ24 Conduct a risk analysis and management process for the.pdf
Q24 Conduct a risk analysis and management process for the.pdf
 
Q2 Design the pseudocode to print a binary tree At the vis.pdf
Q2 Design the pseudocode to print a binary tree At the vis.pdfQ2 Design the pseudocode to print a binary tree At the vis.pdf
Q2 Design the pseudocode to print a binary tree At the vis.pdf
 
Q2 Let X denote the amount of time for which a book onehou.pdf
Q2 Let X denote the amount of time for which a book onehou.pdfQ2 Let X denote the amount of time for which a book onehou.pdf
Q2 Let X denote the amount of time for which a book onehou.pdf
 
Q2 Given the total cost function Ca+bY with agt00ltb.pdf
Q2 Given the total cost function Ca+bY with agt00ltb.pdfQ2 Given the total cost function Ca+bY with agt00ltb.pdf
Q2 Given the total cost function Ca+bY with agt00ltb.pdf
 
Q2 A sample space S consists of five simple events with the.pdf
Q2 A sample space S consists of five simple events with the.pdfQ2 A sample space S consists of five simple events with the.pdf
Q2 A sample space S consists of five simple events with the.pdf
 
Q2 ClothsforYou plc is a medium sized UK listed interneton.pdf
Q2 ClothsforYou plc is a medium sized UK listed interneton.pdfQ2 ClothsforYou plc is a medium sized UK listed interneton.pdf
Q2 ClothsforYou plc is a medium sized UK listed interneton.pdf
 
Q1 Shale is a sedimentary rock a protolith of slate whic.pdf
Q1 Shale is a sedimentary rock a protolith of slate whic.pdfQ1 Shale is a sedimentary rock a protolith of slate whic.pdf
Q1 Shale is a sedimentary rock a protolith of slate whic.pdf
 
Q2 Mention whether the following instructions are right or.pdf
Q2  Mention whether the following instructions are right or.pdfQ2  Mention whether the following instructions are right or.pdf
Q2 Mention whether the following instructions are right or.pdf
 
Q2 5 marks An educational researcher believes that the me.pdf
Q2 5 marks An educational researcher believes that the me.pdfQ2 5 marks An educational researcher believes that the me.pdf
Q2 5 marks An educational researcher believes that the me.pdf
 
Q1 We read many accounts this week of what emerging indepen.pdf
Q1 We read many accounts this week of what emerging indepen.pdfQ1 We read many accounts this week of what emerging indepen.pdf
Q1 We read many accounts this week of what emerging indepen.pdf
 
Q1Unaudited information about significant events and uncer.pdf
Q1Unaudited information about significant events and uncer.pdfQ1Unaudited information about significant events and uncer.pdf
Q1Unaudited information about significant events and uncer.pdf
 
Q1413 What is the structure in coordinates J25 and J10 .pdf
Q1413 What is the structure in coordinates J25 and J10 .pdfQ1413 What is the structure in coordinates J25 and J10 .pdf
Q1413 What is the structure in coordinates J25 and J10 .pdf
 
q10 Euromarket investment and fund raising A USbased mult.pdf
q10 Euromarket investment and fund raising A USbased mult.pdfq10 Euromarket investment and fund raising A USbased mult.pdf
q10 Euromarket investment and fund raising A USbased mult.pdf
 
Q10 What is the value of the variable message in the foll.pdf
Q10 What is the value of the variable message in the foll.pdfQ10 What is the value of the variable message in the foll.pdf
Q10 What is the value of the variable message in the foll.pdf
 
Q1 Write a python function that gets a list as an input an.pdf
Q1 Write a python function that gets a list as an input an.pdfQ1 Write a python function that gets a list as an input an.pdf
Q1 Write a python function that gets a list as an input an.pdf
 
Q10 Calculate return on capital when earnings before interes.pdf
Q10 Calculate return on capital when earnings before interes.pdfQ10 Calculate return on capital when earnings before interes.pdf
Q10 Calculate return on capital when earnings before interes.pdf
 
Q1 Write the genotype of an individual who is homozygous re.pdf
Q1 Write the genotype of an individual who is homozygous re.pdfQ1 Write the genotype of an individual who is homozygous re.pdf
Q1 Write the genotype of an individual who is homozygous re.pdf
 
Q1 Which of the following statements is true about perfectl.pdf
Q1 Which of the following statements is true about perfectl.pdfQ1 Which of the following statements is true about perfectl.pdf
Q1 Which of the following statements is true about perfectl.pdf
 

Dernier

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 

Dernier (20)

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 

Python code not outputting list elements correctly with commas and hash character

  • 1. python help please. not sure why code is not working for the input displayed at the bottom. currently using this code for i in range(dataLength) : if (i!=len(data)-1): print(data[i],end=',') else: print(data[i],end='#') Brightspace would look like this: { ist element 1},{1 ist element 2},{1 ist element 3},,{ last list element }# You are going to take the data from the list provided via input and output its contents in this format. Details Input - Program input is handled for you. After some initial processing (by me), you will be left with the following: - an array called data (with elements of the String data type). Processing/Output - Loop through the array data - Output the elements from the array such that each element is separated by a comma and the last element is followed by the the character AtOutput: Expected: # Feedback: Input: string EOF