Goal

Fun with Python Lists and Dictionary with Modules , Functions.

Data

Students exam marks records data available in dictionary format as given below, each student data is stored in the list format in dictionary.

{‘student1’:[‘PR’,56,32,34,56,78,90],’student2′:[‘RJ’,64,18,99,86,12,90],’student3′:[‘AN’,35,65,45,87,98,90],’student3′:[‘BN’,78,92,81,40,88,90],’student4′:[‘SM’,98,87,35,93,15,90]}

Instructions

1. Exam pass cut off marks : 35
2. Student records are stored in the list format and the ordered list contains data in this format
[student short name, English, French, Science, Social, Maths, Arts]

Hint

Use , Functions, Modules, List, Dictionary, Tuple, Integer, String, For and If conditions.

Problem

Write Python Code for the below Tasks.

Tasks

1. Print the Student Names who got failed in at least in one subject.
   Expected print output format:
   PR, RJ, SM students are failed in at least one exam.
2. Print the Student Name who got passed in all exams.
  Expected print output format:
  BN student got passed in all exams.
3. Print the Student Name who got highest marks in Maths Subject.
  Expected print output format:
  AN student has got highest marks in Maths subject
4. Print all Student Names attended for the exams.
  Expected print output format:
   Student Names: PR, RJ, AN, BN, SM
5. Print all four Student Names and Marks in each Subject.
  Expected print output format:
  Student PR Marks: English:56, French: 32, Science:34, Social:56, Maths:78, Arts: 90
Congratulations!! You must be now confident to play with Python!
Comment below with your experience with this project!
© Edwiki Trainings – Click HERE If you are interested to learn more on Cloud & DevOps stack.
0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like