n = int(input("How many numbers do you need to check? "))
even = 0
odd = 0
for x in range(n):
num = int(input("Enter number: "))
if num % 2 == 0:
even += 1
print(str(num) + " is an even number.")
else:
odd += 1
print(str(num) + " is an odd number.")
print("You entered " + str(even) + " even number(s).")
print("You entered " + str(odd) + " odd number(s).")
This works for me. Best of luck.
Answer
TRUE
Explanation
In a computer, high-level language programs are translated into machine language before they undergo execution. The Compiler is the computer program responsible for the translation of the written code in high level language to a lower level language also called machine/object code. The translation is performed to create an executable program.