Calculate Sum of Even and Odd Numbers

# Introduction In this lab, you need to write a program that takes a list of numbers, calculates the sum of the even numbers and the sum of the odd numbers separately, and returns a list with the sum of even numbers as the first element and the sum of odd numbers as the second element.

|
60 : 00

Click the virtual machine below to start practicing