Calculating and Formatting Dynamics
Task
Swipe to start coding
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%
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 9
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Suggested prompts:
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 4.35
Calculating and Formatting Dynamics
Swipe to show menu
Task
Swipe to start coding
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%
.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 4.35SectionΒ 3. ChapterΒ 9
single