SlideShare una empresa de Scribd logo
1 de 2
Descargar para leer sin conexión
1.Write an algorithm for resolving a battle among the classic
Pokemon types.
The user should select a type of either fire, water or grass.
The computer should randomly select one of those three types
as well.
To determine if the user or computer wins, or if it is a draw:
fire is stronger than grass, grass is stronger than water, and
water is stronger than fire. Whomever chose the stronger type is
the winner. If both chose the same type it is a draw.
See
here
for an example of what an algorithm should look like. Your
algorithm should be at a similar level of detail.
See
here
(Links to an external site.)
(
http://cgi.soic.indiana.edu/~dpierz/pokemon.html
)for an example of the interactions and determining a winner
(the example has pictures, your algorithm needs only to
consider text based inputs and messages)
If you submit python code instead on an algorithm you will
not receive points for this question.
2.Write a program that ask the user for a string as input. It
should duplicate of all the characters in the string and print it
back out to the user. For example: AbC123 would be printed out
as AAbbCC112233
3.Write a program that takes two lists and displays the items
that occur in both lists. For example: ["a", "b", "c"] ["c", "a",
"d"] would display a and c

Más contenido relacionado

Más de carlstromcurtis

1. Explain James Q. Wilsons three types of policing.  2. What.docx
1. Explain James Q. Wilsons three types of policing.  2. What.docx1. Explain James Q. Wilsons three types of policing.  2. What.docx
1. Explain James Q. Wilsons three types of policing.  2. What.docxcarlstromcurtis
 
1. What is the underlying problem in this case from CEO Brian Niccol.docx
1. What is the underlying problem in this case from CEO Brian Niccol.docx1. What is the underlying problem in this case from CEO Brian Niccol.docx
1. What is the underlying problem in this case from CEO Brian Niccol.docxcarlstromcurtis
 
1. List and discuss the heat sources identified by the NFPA as being.docx
1. List and discuss the heat sources identified by the NFPA as being.docx1. List and discuss the heat sources identified by the NFPA as being.docx
1. List and discuss the heat sources identified by the NFPA as being.docxcarlstromcurtis
 
1. What is kinesics2. What is the difference between using time.docx
1. What is kinesics2. What is the difference between using time.docx1. What is kinesics2. What is the difference between using time.docx
1. What is kinesics2. What is the difference between using time.docxcarlstromcurtis
 
1. List two (2) gender related listening differences that have been .docx
1. List two (2) gender related listening differences that have been .docx1. List two (2) gender related listening differences that have been .docx
1. List two (2) gender related listening differences that have been .docxcarlstromcurtis
 
1. In some places, technology has reached the point where a tria.docx
1. In some places, technology has reached the point where a tria.docx1. In some places, technology has reached the point where a tria.docx
1. In some places, technology has reached the point where a tria.docxcarlstromcurtis
 
1. Describe Digital Literacy (how to know what is real on the web). .docx
1. Describe Digital Literacy (how to know what is real on the web). .docx1. Describe Digital Literacy (how to know what is real on the web). .docx
1. Describe Digital Literacy (how to know what is real on the web). .docxcarlstromcurtis
 
1. Define the following terms  poster session, conference proce.docx
1. Define the following terms  poster session, conference proce.docx1. Define the following terms  poster session, conference proce.docx
1. Define the following terms  poster session, conference proce.docxcarlstromcurtis
 
1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docx1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docxcarlstromcurtis
 
1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docx1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docxcarlstromcurtis
 
1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docx1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docxcarlstromcurtis
 
1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docx1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docxcarlstromcurtis
 
1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docx1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docxcarlstromcurtis
 
1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docx1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docxcarlstromcurtis
 
1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docx1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docxcarlstromcurtis
 
1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docx1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docxcarlstromcurtis
 
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docxcarlstromcurtis
 
1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docx1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docxcarlstromcurtis
 
1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docx1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docxcarlstromcurtis
 
1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docx1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docxcarlstromcurtis
 

Más de carlstromcurtis (20)

1. Explain James Q. Wilsons three types of policing.  2. What.docx
1. Explain James Q. Wilsons three types of policing.  2. What.docx1. Explain James Q. Wilsons three types of policing.  2. What.docx
1. Explain James Q. Wilsons three types of policing.  2. What.docx
 
1. What is the underlying problem in this case from CEO Brian Niccol.docx
1. What is the underlying problem in this case from CEO Brian Niccol.docx1. What is the underlying problem in this case from CEO Brian Niccol.docx
1. What is the underlying problem in this case from CEO Brian Niccol.docx
 
1. List and discuss the heat sources identified by the NFPA as being.docx
1. List and discuss the heat sources identified by the NFPA as being.docx1. List and discuss the heat sources identified by the NFPA as being.docx
1. List and discuss the heat sources identified by the NFPA as being.docx
 
1. What is kinesics2. What is the difference between using time.docx
1. What is kinesics2. What is the difference between using time.docx1. What is kinesics2. What is the difference between using time.docx
1. What is kinesics2. What is the difference between using time.docx
 
1. List two (2) gender related listening differences that have been .docx
1. List two (2) gender related listening differences that have been .docx1. List two (2) gender related listening differences that have been .docx
1. List two (2) gender related listening differences that have been .docx
 
1. In some places, technology has reached the point where a tria.docx
1. In some places, technology has reached the point where a tria.docx1. In some places, technology has reached the point where a tria.docx
1. In some places, technology has reached the point where a tria.docx
 
1. Describe Digital Literacy (how to know what is real on the web). .docx
1. Describe Digital Literacy (how to know what is real on the web). .docx1. Describe Digital Literacy (how to know what is real on the web). .docx
1. Describe Digital Literacy (how to know what is real on the web). .docx
 
1. Define the following terms  poster session, conference proce.docx
1. Define the following terms  poster session, conference proce.docx1. Define the following terms  poster session, conference proce.docx
1. Define the following terms  poster session, conference proce.docx
 
1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docx1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docx
 
1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docx1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docx
 
1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docx1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docx
 
1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docx1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docx
 
1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docx1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docx
 
1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docx1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docx
 
1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docx1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docx
 
1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docx1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docx
 
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
 
1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docx1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docx
 
1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docx1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docx
 
1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docx1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docx
 

Último

Jason Potel In Media Res Media Component
Jason Potel In Media Res Media ComponentJason Potel In Media Res Media Component
Jason Potel In Media Res Media ComponentInMediaRes1
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...Nguyen Thanh Tu Collection
 
Transdisciplinary Pathways for Urban Resilience [Work in Progress].pptx
Transdisciplinary Pathways for Urban Resilience [Work in Progress].pptxTransdisciplinary Pathways for Urban Resilience [Work in Progress].pptx
Transdisciplinary Pathways for Urban Resilience [Work in Progress].pptxinfo924062
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...DrVipulVKapoor
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEMISSRITIMABIOLOGYEXP
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipKarl Donert
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
Views in Odoo 17 - Kanban View in odoo 17
Views in Odoo 17 - Kanban View  in odoo 17Views in Odoo 17 - Kanban View  in odoo 17
Views in Odoo 17 - Kanban View in odoo 17Celine George
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptx16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptxUmeshTimilsina1
 
Farrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest EntranceFarrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest Entrancejulius27264
 
BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...
BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...
BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...Nguyen Thanh Tu Collection
 
STRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptx
STRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptxSTRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptx
STRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptxkimdan468
 
Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...
Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...
Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...EduSkills OECD
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 

Último (20)

Jason Potel In Media Res Media Component
Jason Potel In Media Res Media ComponentJason Potel In Media Res Media Component
Jason Potel In Media Res Media Component
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN THEO CÂU CHO HỌC SINH LỚP 12 ĐỂ ĐẠT ĐIỂM 5+ THI TỐT NGHIỆP THPT ...
 
Transdisciplinary Pathways for Urban Resilience [Work in Progress].pptx
Transdisciplinary Pathways for Urban Resilience [Work in Progress].pptxTransdisciplinary Pathways for Urban Resilience [Work in Progress].pptx
Transdisciplinary Pathways for Urban Resilience [Work in Progress].pptx
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
Geoffrey Chaucer Works II UGC NET JRF TGT PGT MA PHD Entrance Exam II History...
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
 
The role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenshipThe role of Geography in climate education: science and active citizenship
The role of Geography in climate education: science and active citizenship
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
Views in Odoo 17 - Kanban View in odoo 17
Views in Odoo 17 - Kanban View  in odoo 17Views in Odoo 17 - Kanban View  in odoo 17
Views in Odoo 17 - Kanban View in odoo 17
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptx16. Discovery, function and commercial uses of different PGRS.pptx
16. Discovery, function and commercial uses of different PGRS.pptx
 
Farrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest EntranceFarrington HS Streamlines Guest Entrance
Farrington HS Streamlines Guest Entrance
 
BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...
BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...
BÀI TẬP BỔ TRỢ 4 KĨ NĂNG TIẾNG ANH LỚP 8 - CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC ...
 
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
Mattingly "AI & Prompt Design" - Introduction to Machine Learning"
 
STRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptx
STRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptxSTRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptx
STRAND 1 FOUNDATION OF PRETECHNICALSTUDIE.pptx
 
Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...
Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...
Advancing Gender Equality The Crucial Role of Science and Technology 4 April ...
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
Plagiarism,forms,understand about plagiarism,avoid plagiarism,key significanc...
 

1.Write an algorithm for resolving a battle among the classic Pokemo.docx

  • 1. 1.Write an algorithm for resolving a battle among the classic Pokemon types. The user should select a type of either fire, water or grass. The computer should randomly select one of those three types as well. To determine if the user or computer wins, or if it is a draw: fire is stronger than grass, grass is stronger than water, and water is stronger than fire. Whomever chose the stronger type is the winner. If both chose the same type it is a draw. See here for an example of what an algorithm should look like. Your algorithm should be at a similar level of detail. See here (Links to an external site.) ( http://cgi.soic.indiana.edu/~dpierz/pokemon.html )for an example of the interactions and determining a winner (the example has pictures, your algorithm needs only to consider text based inputs and messages) If you submit python code instead on an algorithm you will not receive points for this question. 2.Write a program that ask the user for a string as input. It should duplicate of all the characters in the string and print it back out to the user. For example: AbC123 would be printed out as AAbbCC112233
  • 2. 3.Write a program that takes two lists and displays the items that occur in both lists. For example: ["a", "b", "c"] ["c", "a", "d"] would display a and c