Question: User Write a Python program that prompts the user to enter the number of students studying science and the number of students studying arts in
User
Write a Python program that prompts the user to enter the number of students studying science and the number of students studying arts in a school. The program should calculate and display the percentage of science and arts students. If the percentage of science students is higher, the program should display the message 'Science is the more popular subject'. If the percentage of arts students is higher, it should display 'Arts is the more popular subject'. In case of an equal percentage, display 'Both subjects are equally popular'.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
