Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Visualize Your Weekly Spending | Visualizing and Presenting Information
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Daily Tasks

bookChallenge: Visualize Your Weekly Spending

Tâche

Swipe to start coding

Write a Python script that visualizes your weekly spending with a bar chart using matplotlib.

  • Create a bar chart that displays each expense from the expenses list for the corresponding day of the week.
  • Add labels for the x-axis ("Day of the Week") and y-axis ("Amount Spent ($)").
  • Add a title to the chart: "Weekly Spending Overview".
  • Ensure all seven days of the week are represented on the chart.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 3
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

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Visualize Your Weekly Spending

Glissez pour afficher le menu

Tâche

Swipe to start coding

Write a Python script that visualizes your weekly spending with a bar chart using matplotlib.

  • Create a bar chart that displays each expense from the expenses list for the corresponding day of the week.
  • Add labels for the x-axis ("Day of the Week") and y-axis ("Amount Spent ($)").
  • Add a title to the chart: "Weekly Spending Overview".
  • Ensure all seven days of the week are represented on the chart.

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 3
single

single

some-alt