Skip to content
Advertisement

Tag: eof

EOFError: EOF when reading a line error in my function

I wrote this function which takes a list of numbers and returns their sum and product: input: output: the problem is that the two print functions are not working. It only prints one of them and for the other I have the EOFError: EOF when reading a line. Do you have any suggestion to change the function in order to

Advertisement