Course Content
String Manipulation in Python
String Manipulation in Python
Calculating and Formatting Dynamics
Swipe to show code editor
As of 2020, the USA population was 331002651, of which 273975139 - urban population. The Urban population (%) is the proportion of the urban population to the total. Your tasks are:
- Print total and urban populations with commas every thousand;
- Calculate urban population (%), and print the result in the following format:
45.653%
.
Thanks for your feedback!
Calculating and Formatting Dynamics
Swipe to show code editor
As of 2020, the USA population was 331002651, of which 273975139 - urban population. The Urban population (%) is the proportion of the urban population to the total. Your tasks are:
- Print total and urban populations with commas every thousand;
- Calculate urban population (%), and print the result in the following format:
45.653%
.
Thanks for your feedback!
Calculating and Formatting Dynamics
Swipe to show code editor
As of 2020, the USA population was 331002651, of which 273975139 - urban population. The Urban population (%) is the proportion of the urban population to the total. Your tasks are:
- Print total and urban populations with commas every thousand;
- Calculate urban population (%), and print the result in the following format:
45.653%
.
Thanks for your feedback!
Swipe to show code editor
As of 2020, the USA population was 331002651, of which 273975139 - urban population. The Urban population (%) is the proportion of the urban population to the total. Your tasks are:
- Print total and urban populations with commas every thousand;
- Calculate urban population (%), and print the result in the following format:
45.653%
.