Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Calculating and Formatting Dynamics | Strings Formatting
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
String Manipulation in Python
close
Section 3. Chapitre 9
single

single

bookCalculating and Formatting Dynamics

Glissez pour afficher le menu

Tâche

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:

  1. Print total and urban populations with commas every thousand;
  2. Calculate urban population (%), and print the result in the following format: 45.653%.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 9
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt