Code Coach Even Numbers Bug? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Code Coach Even Numbers Bug?

I have a nagging feeling that code coach even numbers (Python) has a bug in it. Since I donā€™t want to post code coach solutions here, would someone knowledgeable get in contact with me via PM? I will post teachable moments here later in order for this post to have value in the forum.

27th Jul 2020, 12:25 PM
Brave Tea
Brave Tea - avatar
3 Respostas
+ 3
If you think that the question has a bug in it then you can report it to sololearn via info@sololearn.com.
27th Jul 2020, 12:47 PM
Arsenic
Arsenic - avatar
- 1
My take: x = input().split() res = [i for i in x if int(i) % 2 == 0] print(*res)
10th Dec 2021, 7:16 PM
Mateo GonzƔlez Bufi
Mateo GonzƔlez Bufi - avatar
- 2
Here is my code on Even Numbers code coach n=input().split() l=[] s=" " for i in n: l.append(int(i)) for i in l: if (i % 2==0): s=s+str(i)+" " print(s)
29th May 2021, 7:10 PM
š‘·š’‚š’“š’…š’‰š’–_š‘Øš’š’‚š’‘š’‚š’•š’Š`
š‘·š’‚š’“š’…š’‰š’–_š‘Øš’š’‚š’‘š’‚š’•š’Š` - avatar