Question: Am getting a syntaxerror when inputting elif command in elif (i >=6 and i = 0 and i = 6 and i

Am getting a syntaxerror when inputting elif command in elif (i >=6 and i <=10):here it increment the count......

for i in range (0, 15): trainName = input ("Enter Trainers last name: ") trainers.append (trainName)#input for trainers_name trainNum = int (input ("Enter number of new enrollees: ")) enrollees.append (trainNum)#input of new enrolees category = [0, 0, 0]#list collect number of trainers for i in enrollees:#iterate through every enrolees if (i >= 0 and i <= 5): category[0] = category[0] + 1 else if (i >= 6 and i <= 10):#here it increment the count category[1], and its represents the 2nd category SyntaxError: invalid syntax

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!