Question: Integer num _ input is read from input, representing the number of candidate names to be read from input. List candidates _ list contains the

Integer num_input is read from input, representing the number of candidate names to be read from input. List candidates_list contains the candidate names read from the remaining input. For each element in candidates_list:
If the element's index is even, output the element followed by' to Hall 449'.
Otherwise, output the element followed by' to Hall 875'.
Note: x %2==0 returns True if x is even.
num_input = int(input())
candidates_list =[]
for i in range(num_input):
candidates_list.append(input())
''' Your code goes here '''

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 Programming Questions!