+ 2
Can it is possible??
Take data of students of five different classes in a single list. o One, Two, Three, Four and Five Store their name, roll number, marks in last class and their current class. You are supposed to input the data in random order of classes. After taking the data of all the classes in a single list, you are required to perform the following tasks: Extract the data by classes and print records of all students of a class together and so on for all classes. Print the student from each class having maximum marks than other students in the class.
17 odpowiedzi
+ 4
Mohsin haider Sultan
Hi! Start build up a dictionary for every class (student classes, not Python classes) that uses "name", "marks" etc as keywords.
Now let every keyword value become a separate dictionary, in which you use the roll number as keyword identifier that identifeis all students in a unique way.
For example:
d_one = {}
d_one["name"] = {1: "Zoe", 2: "Lou", 3: "Eva", 4: "Ivy", 11: "Mya", 6: "Bob", 7: "Amy", 28: "Roy", 143: "Ana", 10: "Ben"}
d_one["mark"] = {143: "A", 28: "B", 3: "C", 10: "A", 11: "D", 6: "B", 7: "A", 2: "C", 1: "B", 4: "A"}
etc.
When you have done that, we can go to the next step. And append your code so I can see it, otherwise it will be hard to help you.
https://code.sololearn.com/ci6UDQhoA1Os/?ref=app
+ 1
Yes, it is possible
+ 1
I tried thousand of time but🥺
+ 1
So can you help me to do this task 😔.
+ 1
Mohsin haider Sultan
You didn't find Class topic in python?
Check OOP lesson in Python Core
0
Mohsin haider Sultan
Thousand of time?
Then change your learning process
0
I am beginner so i can't understand the concept and unfamiliar to keyword of python
0
Either post your attempt or start the lesson your on over again.
0
I can't find this type of lession in anywere. I mean google, YouTube etc
0
Class can't be use just list... That is problem.
0
What is this question for? Please state the programing language, the course number. And show your attempt so we can help you.
0
sava mon frère
- 1
Everything is possible just show your attempts.
- 1
What's the best way for me to learn python if I don't have enough bits for hearts?
- 1
Yes it is ☺️☺️☺️
- 1
Mohsin haider Sultan
You didn't find Class topic in python?
Check OOP lesson in Python Core
- 3
sava mon frère