Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!