Count Students

 Count Students

QUESTION DESCRIPTION

Write a program to count the number of students having age less than 25 and weight less than 50kg out of 'n' students.

Input Format:
First Line of Input is the Number of pairs of elements
Next Line has the age followed by the wright of the student and this format is followed for the n number of inputs
Output:
Print the Count of students who satisfy the condition of age less than 25 and weight less than 50 kg

n=int(input())
count=0
for i in range (0,n):
  a=int(input())
  b=int(input())
  if a<25 and b<50:
    count=count+1
print("Count:",count)

Comments