Answer to Question #298156 in Python for Kaavya

Question #298156

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

1
Expert's answer
2022-02-15T09:33:03-0500
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])

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS