Question: (python) Skills & Page References Specifying field widths see page 75 and for alignment see page 76-77. For the order of f-string designators and concatenation

(python)

Skills & Page References

  • Specifyingfield widthssee page 75 and foralignmentsee page 76-77.
  • For theorder off-string designatorsandconcatenation with f-stringssee page 78.
  • For theitems()method, see page 476-477.
  • For thekeys()method see page 477 and see page 479 for thevalues()method.
  • Foraddingelements, see page 470 and toremovean element see page 475.

program9_1.py Write a program that stores current grades in a dictionary, withcourse codes as keysandpercent grades as values. Start with anemptydictionary and thenuse a while loopto enable input of course codes and percent gradesfrom the keyboard. Enter data forat least fivecourses. After entering the data, use afor loopandthe keysto show the current status of all courses. This same loop should include code that enables determination of theworst courseand theaverage of all courses. Both of these findings should be printed when the loop ends. Theworst courseshould bedropped and reported. This being done, the program should useanother loopand theitems methodto display the revised courses and grades and report therevised term average.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!