SlideShare a Scribd company logo
1 of 1
Download to read offline
Mike : s 3, p 2
Leo : s 2 , p 2
Don: s 1 , p 2
April : s 3 , p 1
Splinter : s 1, p 3
Casey : s 2 , p 2 Suppose we are writing code for the TMNT: Shredder's Revenge, and we have
the following Python code: name =[ "Raph", "Mike", "Leo", "Don", "April", "Splinter", "Casey"]
speed =[2,3,2,1,3,1,2] power =[3,2,2,2,1,3,2] a) Write a loop in Python to print the name, and
power of the characters whose speed is not equal to 2. (5 pts) b) Declare the list name as an array
in Java. (5 pts) c) Instead of using 3 separate lists, we can use a 2D list to store the same
information. Declare in Python a 2D list called characters, where each item in the 2D list is a 1D
list that has the name, speed, and power. (6 pts) d) Write a for loops to print the contents of the
character (2D list) on the screen. The output should be the following: ( 7 pts)

More Related Content

More from saxenaavnish1

me quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdf
me quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdfme quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdf
me quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdfsaxenaavnish1
 
Mendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdf
Mendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdfMendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdf
Mendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdfsaxenaavnish1
 
MCQ Select the correct answer.1. What does SQL stand fora.pdf
MCQ  Select the correct answer.1. What does SQL stand fora.pdfMCQ  Select the correct answer.1. What does SQL stand fora.pdf
MCQ Select the correct answer.1. What does SQL stand fora.pdfsaxenaavnish1
 
MCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdf
MCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdfMCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdf
MCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdfsaxenaavnish1
 
Megan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdf
Megan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdfMegan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdf
Megan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdfsaxenaavnish1
 
media luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdf
media luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdfmedia luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdf
media luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdfsaxenaavnish1
 
my code doesnt work can you help me please the whole idea of is it i.pdf
my code doesnt work can you help me please the whole idea of is it i.pdfmy code doesnt work can you help me please the whole idea of is it i.pdf
my code doesnt work can you help me please the whole idea of is it i.pdfsaxenaavnish1
 
Must be in C++ programming The main objective of this experiment i.pdf
Must be in C++ programming The main objective of this experiment i.pdfMust be in C++ programming The main objective of this experiment i.pdf
Must be in C++ programming The main objective of this experiment i.pdfsaxenaavnish1
 
MUS monetary unit samplingA) What is the planned sample sizeB).pdf
MUS monetary unit samplingA) What is the planned sample sizeB).pdfMUS monetary unit samplingA) What is the planned sample sizeB).pdf
MUS monetary unit samplingA) What is the planned sample sizeB).pdfsaxenaavnish1
 
Multifactor authentication (MFA) requires users to authenticate thei.pdf
Multifactor authentication (MFA) requires users to authenticate thei.pdfMultifactor authentication (MFA) requires users to authenticate thei.pdf
Multifactor authentication (MFA) requires users to authenticate thei.pdfsaxenaavnish1
 
MTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdf
MTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdfMTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdf
MTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdfsaxenaavnish1
 
Multiple Choice � Choose the BEST answer for each question below.1.pdf
Multiple Choice � Choose the BEST answer for each question below.1.pdfMultiple Choice � Choose the BEST answer for each question below.1.pdf
Multiple Choice � Choose the BEST answer for each question below.1.pdfsaxenaavnish1
 
Muchos centros de llamadas que brindan servicios telef�nicos al clie.pdf
Muchos centros de llamadas que brindan servicios telef�nicos al clie.pdfMuchos centros de llamadas que brindan servicios telef�nicos al clie.pdf
Muchos centros de llamadas que brindan servicios telef�nicos al clie.pdfsaxenaavnish1
 
Multiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdf
Multiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdfMultiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdf
Multiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdfsaxenaavnish1
 
Motivation describes why the employee does the job, and Job Satisfac.pdf
Motivation describes why the employee does the job, and Job Satisfac.pdfMotivation describes why the employee does the job, and Job Satisfac.pdf
Motivation describes why the employee does the job, and Job Satisfac.pdfsaxenaavnish1
 
Move a knight Its name is move_knightIt takes three arguments the.pdf
Move a knight Its name is move_knightIt takes three arguments the.pdfMove a knight Its name is move_knightIt takes three arguments the.pdf
Move a knight Its name is move_knightIt takes three arguments the.pdfsaxenaavnish1
 
Most Americans have negative perceptions of the people and places .pdf
Most Americans have negative perceptions of the people and places .pdfMost Americans have negative perceptions of the people and places .pdf
Most Americans have negative perceptions of the people and places .pdfsaxenaavnish1
 
mrs. burkes chemistry class has 111 students, classified by academic.pdf
mrs. burkes chemistry class has 111 students, classified by academic.pdfmrs. burkes chemistry class has 111 students, classified by academic.pdf
mrs. burkes chemistry class has 111 students, classified by academic.pdfsaxenaavnish1
 
Mr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdf
Mr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdfMr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdf
Mr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdfsaxenaavnish1
 
Morgan and his students used chemicals and radiation to induce rando.pdf
Morgan and his students used chemicals and radiation to induce rando.pdfMorgan and his students used chemicals and radiation to induce rando.pdf
Morgan and his students used chemicals and radiation to induce rando.pdfsaxenaavnish1
 

More from saxenaavnish1 (20)

me quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdf
me quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdfme quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdf
me quedan 35 munites por favor ayudenme Art�culo 1 En el caso .pdf
 
Mendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdf
Mendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdfMendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdf
Mendel logr� descubrir las leyes b�sicas de la herencia, mientras qu.pdf
 
MCQ Select the correct answer.1. What does SQL stand fora.pdf
MCQ  Select the correct answer.1. What does SQL stand fora.pdfMCQ  Select the correct answer.1. What does SQL stand fora.pdf
MCQ Select the correct answer.1. What does SQL stand fora.pdf
 
MCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdf
MCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdfMCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdf
MCQ Pls Help ACC495 Corporate Governance and Risk Management Which .pdf
 
Megan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdf
Megan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdfMegan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdf
Megan se gradu� de la universidad hace tres a�os y ha estado trabaja.pdf
 
media luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdf
media luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdfmedia luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdf
media luna pura Sarah Ryan, vicepresidenta de marketing de Portlan.pdf
 
my code doesnt work can you help me please the whole idea of is it i.pdf
my code doesnt work can you help me please the whole idea of is it i.pdfmy code doesnt work can you help me please the whole idea of is it i.pdf
my code doesnt work can you help me please the whole idea of is it i.pdf
 
Must be in C++ programming The main objective of this experiment i.pdf
Must be in C++ programming The main objective of this experiment i.pdfMust be in C++ programming The main objective of this experiment i.pdf
Must be in C++ programming The main objective of this experiment i.pdf
 
MUS monetary unit samplingA) What is the planned sample sizeB).pdf
MUS monetary unit samplingA) What is the planned sample sizeB).pdfMUS monetary unit samplingA) What is the planned sample sizeB).pdf
MUS monetary unit samplingA) What is the planned sample sizeB).pdf
 
Multifactor authentication (MFA) requires users to authenticate thei.pdf
Multifactor authentication (MFA) requires users to authenticate thei.pdfMultifactor authentication (MFA) requires users to authenticate thei.pdf
Multifactor authentication (MFA) requires users to authenticate thei.pdf
 
MTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdf
MTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdfMTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdf
MTCR es una empresa l�der en el desarrollo y fabricaci�n de una ampl.pdf
 
Multiple Choice � Choose the BEST answer for each question below.1.pdf
Multiple Choice � Choose the BEST answer for each question below.1.pdfMultiple Choice � Choose the BEST answer for each question below.1.pdf
Multiple Choice � Choose the BEST answer for each question below.1.pdf
 
Muchos centros de llamadas que brindan servicios telef�nicos al clie.pdf
Muchos centros de llamadas que brindan servicios telef�nicos al clie.pdfMuchos centros de llamadas que brindan servicios telef�nicos al clie.pdf
Muchos centros de llamadas que brindan servicios telef�nicos al clie.pdf
 
Multiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdf
Multiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdfMultiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdf
Multiple choice 1.PHP stands for .A. Hypertext Preprocessor2.V.pdf
 
Motivation describes why the employee does the job, and Job Satisfac.pdf
Motivation describes why the employee does the job, and Job Satisfac.pdfMotivation describes why the employee does the job, and Job Satisfac.pdf
Motivation describes why the employee does the job, and Job Satisfac.pdf
 
Move a knight Its name is move_knightIt takes three arguments the.pdf
Move a knight Its name is move_knightIt takes three arguments the.pdfMove a knight Its name is move_knightIt takes three arguments the.pdf
Move a knight Its name is move_knightIt takes three arguments the.pdf
 
Most Americans have negative perceptions of the people and places .pdf
Most Americans have negative perceptions of the people and places .pdfMost Americans have negative perceptions of the people and places .pdf
Most Americans have negative perceptions of the people and places .pdf
 
mrs. burkes chemistry class has 111 students, classified by academic.pdf
mrs. burkes chemistry class has 111 students, classified by academic.pdfmrs. burkes chemistry class has 111 students, classified by academic.pdf
mrs. burkes chemistry class has 111 students, classified by academic.pdf
 
Mr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdf
Mr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdfMr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdf
Mr. and Mrs. Faurah, an immigrant couple in their early 70�s, have b.pdf
 
Morgan and his students used chemicals and radiation to induce rando.pdf
Morgan and his students used chemicals and radiation to induce rando.pdfMorgan and his students used chemicals and radiation to induce rando.pdf
Morgan and his students used chemicals and radiation to induce rando.pdf
 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
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
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
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
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
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
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 

Recently uploaded (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
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
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
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
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 

Mike s 3, p 2Leo s 2 , p 2Don s 1 , p 2April s 3 , p 1.pdf

  • 1. Mike : s 3, p 2 Leo : s 2 , p 2 Don: s 1 , p 2 April : s 3 , p 1 Splinter : s 1, p 3 Casey : s 2 , p 2 Suppose we are writing code for the TMNT: Shredder's Revenge, and we have the following Python code: name =[ "Raph", "Mike", "Leo", "Don", "April", "Splinter", "Casey"] speed =[2,3,2,1,3,1,2] power =[3,2,2,2,1,3,2] a) Write a loop in Python to print the name, and power of the characters whose speed is not equal to 2. (5 pts) b) Declare the list name as an array in Java. (5 pts) c) Instead of using 3 separate lists, we can use a 2D list to store the same information. Declare in Python a 2D list called characters, where each item in the 2D list is a 1D list that has the name, speed, and power. (6 pts) d) Write a for loops to print the contents of the character (2D list) on the screen. The output should be the following: ( 7 pts)