***I'm not explaining this well so hopefully this edit makes more sense: basically I have to write code that will work for a ton of test cases, the input below is just an example. So I can't manually enter the input into my function
Say I have the following input:
0
4
0,2,2,3
and I need to generate some sort of output like
1
How can I do this?
What I mean is, if I'm normally given a problem, I can just define a function and then input the values manually, but how do I read raw data (perform a series of functions/operations on the data)?
(For the assignment I am supposed to receive input on STDIN -> and print correct output on STDOUT