python code informactice 3 question
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
6 years ago
30
Purchase the answer to view it

- python.docx
- assignments to complete
- For genius1234
- Tactical Planning 5.2
- A financial team has been properly selected and charged to proceed with its analysis of EEV's financial statements. In the course of its evaluation, it will be assessing the firm's operating performance, benchmarking its competitors, and looking at the in
- .
- Can you write an A+ paper?
- physic lab work
- Measurements
- Week 1 Discussion 1 Discovering Strengths in Leadership
- Complete Exercises #2, #3, & #4 on pages 85 & 86. Submit excel sheets to this assignment module.