Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Language 3.8 Beginner code Add comments for each line Question: Write a program for resolving a battle among the classic Pokemon types. The user

Python Language 3.8

Beginner code

Add comments for each line

Question: Write a program 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.

It should ask the user to enter their type and compare it with a randomly chosen computer type and correctly display who wins/ties.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions