Exam scores
Captain Holt has corrected the exam papers of detectives and noted the scores of the written and physical tests. The results were posted in two lists: one with the scores of the written test, the other with the scores of the physical test in order of the badge numbers. The office needs a list containing the detectives scores on both tests in order of their badge numbers.
Input:
First line of input contains the score of students in chemistry exam seperated by comma.
Second line of the input contains the score of students in English exam seperated by comma.
Output:
Every line of output contains the score obtained by each student in English and Chemistry exams separated by space.
Sample input:
65
75
Sample output:
75 65
Sample input:
85,88,78
85,86,84
Sample output:
85 85
86 88
84 78
chemistry_scores = list(map(int, input().split(',')))
english_scores = list(map(int, input().split(',')))
for i in range(len(chemistry_scores)):
print(english_scores[i], chemistry_scores[i])
Comments
Leave a comment