#Some Disney attractions have the following height limitation: #visitors 42 inches or below cannot ride. Write a program that #reads the #number of Disney visitors on specific day. The program reads the #height for each person and finds and prints the number of people who #can ride and the number of people who cannot ride. #Use loop FOR size=int(input("enter number of visitors ")) can_ride=0 cannot_ride=0 for i in range(size): #i=0,1,2,....size-1, size times overall #alternatively, we can write for i in range(1, size+1): i=1, 2, #...size which is size times height=float(input("enter height ")) if(height<=42): cannot_ride=cannot_ride+1 else: can_ride=can_ride+1 if(cannot_ride>0): print(cannot_ride, "visitors, cannot ride") if(can_ride>0): print(can_ride, "visitors can ride")