+ 2

How to take input in code coach

I was doing an exercise that takes a list and returns the sum of all even numbers So I wrote a function that takes a list but I don’t know to use the list as a parameter

6th May 2020, 4:27 AM
Kush
Kush - avatar
2 Answers
+ 2
In almost all the code coach questions, you would be provided with the sample input and input format in order to understand how sololearn will give input to your code. As far as reading the input goes, that you can do just like you normally take input (in your case using "input()" function)
6th May 2020, 5:03 AM
Arsenic
Arsenic - avatar
0
got it thanks
6th May 2020, 5:16 AM
Kush
Kush - avatar