How to count the ball captured by each character?Give the pokeball is 20..ball captured by all character is 10 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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:')

25th Mar 2022, 3:07 PM
CML
CML - avatar
7 Answers
+ 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!
25th Mar 2022, 3:55 PM
Lisa
Lisa - avatar
0
Given the pokeball is 20, the captured pokeball is 10...how to find the ball captured by each pokemon?
25th Mar 2022, 3:52 PM
CML
CML - avatar
0
The number pokeball given is 20
25th Mar 2022, 3:59 PM
CML
CML - avatar
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?
25th Mar 2022, 4:03 PM
Lisa
Lisa - avatar
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
25th Mar 2022, 4:08 PM
Simon Sauter
Simon Sauter - avatar
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
25th Mar 2022, 4:30 PM
Lisa
Lisa - avatar