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.
A, most don't have a pre-plan process
Answer:
they represent values 10 to 15
A method of transformation that involves changing the radix or base of the original key and either discarding excess high-order digits (that is, digits in excess of the number desired in the key) or extracting some part of the transformed number.
Explanation:
The ratio of Boys = 4x
The ratio of Girls = 5x
The Number of Boys in the School = 4x + 5x = 1080
= 9x = 1080
= x = 1080/9
<em> </em> = x = 120
The ratio of Boys = 4x = 4 x 120 = <em>480</em>
The ratio of Girls = 5x = 5 x 120 = 600
<u></u>
Answer :- <u><em>The ratio of Boys =480</em></u>