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.
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
0
Tks