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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started