Loading...
Loading...
Loading...
A student record arrives as a JSON object with the keys name and marks. Print the name and the average mark with one decimal, separated by a space.
{"name": "Asha", "marks": [82, 90]}.Example
Input
{"name":"Asha","marks":[82,90,76]}Output
Asha 82.7
Average 82.666...
Try the problem first. Open one hint at a time.
Read the two keys from the dictionary with data["name"].
Format with :.1f after dividing the sum by the count.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor