Question: I need help with this program please!! This is to be coded in Python!! Note: Most of the program is finished but I struggle with

I need help with this program please!!

This is to be coded in Python!!

Note: Most of the program is finished but I struggle with the rest of it

The program I have written so far is bellow the requirments bellow and if you have any questions please ask and I will clarify.

Also, the output is provided so that way the program is tested to ensure it works like it.

Check bellow the requirments for what ia already done and then the rest can be completed based on requirments.

Write a program to keep track of data of Pokemon characters you have captured. Note: There is no data hard-coded in the program. All data is entered by the user Your program will have a class named Pokmon which will contain the following member data: self.__name self.__ability

The Pokmon class will contain the following member methods: __init__ - constructor get_name returns self.__name get_ability returns self.__ability

Here are requirments:

1. Print This program keeps track of Pokemon characters.

2. Most of the Pokmon class is provided. Complete the missing parts of the Pokmon class. For instance, add definitions for the get_name() and get_ability() methods.

3. Complete the display_pokemon() function. My version required six lines (including the def line) but you can use more.

Here is what I got finished:

class Pokeman:

def__init__(self, name, ability):

self.__name = name

salf.__ability = ability

def get_name(self):

def get_ability(self):

def main():

print(' ########## In main() #############') pokeman_list = add_pokeman() display_pokeman(pokeman_list)

def add_pokeman():

print(' In add_pokeman()') pokeman_list = []

pokeman_number = 1

more_pokeman = input(' Do you have a pokeman to enter? (y/n) ').lower()

while more_pokeman == 'y': pokeman_name = input(' Enter name for pokeman #{}: '.format(pokeman_number)) pokeman_ability = input(' Enter ability for pokeman #{}: '.format(pokeman_number))

new_pokeman = pokeman(pokeman_name, pokeman_ability)

pokeman_list.append(new_pokeman)

pokeman_number += 1

more_pokeman = input(' Another pokeman to enter? (y/n) ').lower()

return pokeman_list

def display_pokeman(pokeman_list):

if__name__ = '__main__':

main()

else: pass

4. Produce output like that shown below (your version must include Requirement statements):

################# In main() ######################

In add_pokeman()

Do you have a pokeman to enter? (y/n) y

Enter name for pokeman #1: Wortortle

Enter ability for pokeman #1: Torrent

Another pokeman to enter? (y/n) y

Enter name for pokeman #2: Charizard

Enter ability for pokeman #2: Blaze

Another pokeman to enter? (y/n) n

Name of pokeman #1: Wortortle

Ability of pokeman #1: Torrent

Name of pokeman #2: Charizard

Ability of pokeman #2: Blaze

Process finished with exit code 0

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!