0

Problem

Problem 1. Write a program that asks the user for the number of males and the number of females registered in a class using two separate inputs ("Enter number of males:", "Enter number of females:"). ï‚€ The program should display the percentage of males and females (round to the nearest whole number) in the following format: Percent males: 35% Percent females: 65% Use string formatting.

29th Sep 2017, 6:11 AM
Edward Ya
Edward Ya - avatar
2 Answers
+ 9
Sounds like homework 📚 The task is pretty basic, so you should figure it out on your own. For a resource on string formatting, take a look here: https://docs.python.org/3/library/string.html#format-specification-mini-language
29th Sep 2017, 6:43 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
Tks
29th Sep 2017, 7:15 AM
Edward Ya
Edward Ya - avatar