Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
How to count the ball captured by each character?Give the pokeball is 20..ball captured by all character is 10
print('you have successfully captured',(point), 'the pokeball') print('\nZubat:\nFlamingo:\nPikachu:\nEevee:')
7 ответов
+ 1
What does "pokeball is 20" mean? Please elaborate the value system and its usage.
Is 20 a price, level points, force... And how does it affect the Pokémon?
Please link your complete code!
0
Given the pokeball is 20, the captured pokeball is 10...how to find the ball captured by each pokemon?
0
The number pokeball given is 20
0
Can you please show your code?
Go to Code section, click +, select the programming language, insert your code, save.
Then come back to this thread, click +, Insert Code, sort for My Code Bits, select your code.
So you have 20 balls and you throw them one after another at a Pokémon. And the Pokémon is either caught or escapes. Is that the idea?
0
I assume these have to do with it. Although the question is still hopelessly unclear.
https://www.sololearn.com/discuss/3006682/?ref=app
https://www.sololearn.com/discuss/3006697/?ref=app
0
You could use a dictionary to keep track of the captured Pokémons:
- I change the Pokémon list to a dictionary
- I think you need to swapp line 27 and 28
https://code.sololearn.com/c8x6e8zAWwOO/?ref=app