In: Computer Science
Please attach the output screenshots, narrative descriptions, or paste the Python codes when requested.
Given two exam scores, exam_1 and exam_2, write a program to determine if the student makes progress (exam_2 is greater than exam_1). Return “Yes” or “No”.
You can use any exam_1 score and exam_2 score for this exercise.
For this, we can use the if-else statement of Python. First, we take the input from the user. Ask the user for exam_1 and exam_2 score.
After taking the input compare exam_1 with exam_2. If exam_2 is greater then exam_1 then print "Yes" else print "No".
Please find below the well commented Python code.
Note: Make sure to use correct indentation while writing Python code.
Code text:
exam_1 = int(input("Enter exam1 score: ")) #take the score of
exam1
|
Code image:
Code output: