Write a Python function that meets the following requirements: • Is named findPoints • Accept a single argument of type string • Use the argument to retrieve the related integer point value from the Dictionary named gradePoints referenced in Question 07 • Returns the retrieved integer value
Write a Python function that meets the following requirements: • Is named findPoints • Accept a single argument of type string • Use the argument to retrieve the related integer point value from the Dictionary named gradePoints referenced in Question 07 • Returns the retrieved integer value
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Please read part 2 carefully. Python code. SEE IMAGES
Simple please.

Transcribed Image Text:Assume a **Dictionary** structure has been defined that associates letter grades to their respective integer "quality point" values used for calculating a student's grade point average. The name of the structure is **gradePoints**. Write a statement to retrieve the quality point value for a letter grade of "C". Store the retrieved value in a variable named **"qPoints"**.

Transcribed Image Text:### Python Function Requirements
To fulfill the task, create a Python function building on the following criteria:
- **Function Name**: `findPoints`
- **Parameters**: Accepts a single argument of type `string`.
- **Functionality**: Utilizes the given argument to fetch the corresponding integer point value from a `dictionary` named `gradePoints`. The `gradePoints` dictionary is previously referenced in another question (Question 07).
- **Output**: Returns the fetched integer value.
This task involves retrieving data using a key from a dictionary structure, a common operation in Python programming to help manage and manipulate data efficiently.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education