Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Updating Dictionary | Other Data Types in Python
Introduction to Python(ihor)

Swipe to show menu

book
Challenge: Updating Dictionary

Task

Swipe to start coding

You are given the dictionary students_grades with student names as keys and exam grades as values. Add newly allowed students to the dictionary and update the grade for one student.

  • Add the student John with a grade of 75.
  • Add the student Alice with a grade of 92.
  • Change the grade of the student Peter from 54 to 84.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 14

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Challenge: Updating Dictionary

Task

Swipe to start coding

You are given the dictionary students_grades with student names as keys and exam grades as values. Add newly allowed students to the dictionary and update the grade for one student.

  • Add the student John with a grade of 75.
  • Add the student Alice with a grade of 92.
  • Change the grade of the student Peter from 54 to 84.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 4. ChapterΒ 14
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt