Question: Python language Write a Python program that wil input the number of wins and losses that a football team acquired during a complete scason and

Python language  Python language Write a Python program that wil input the number

Write a Python program that wil input the number of wins and losses that a football team acquired during a complete scason and prints the percentage of wins. The wins and losses values should be input and returned by a function named getValue(..that receives a prompt message. A second function wins Percentage(...) should calculate and returns the percentage of wins. It receives the wins and losses as parameters and returns the percentage of wins (float) to function main(...) which then prints the result. The percentage should be printed as a percent to two decimal places. Please input the number of wins 80 Please input the number of losses 40 The percentage of wins is 66.67% Figure 3. Exercise 3 Sample Run

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