+ 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.

20th Jun 2022, 2:54 PM
Mohsin haider Sultan
Mohsin haider Sultan - avatar
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
20th Jun 2022, 4:48 PM
Per Bratthammar
Per Bratthammar - avatar
+ 1
Yes, it is possible
20th Jun 2022, 2:54 PM
Slick
Slick - avatar
+ 1
I tried thousand of time but🥺
20th Jun 2022, 2:57 PM
Mohsin haider Sultan
Mohsin haider Sultan - avatar
+ 1
So can you help me to do this task 😔.
20th Jun 2022, 3:12 PM
Mohsin haider Sultan
Mohsin haider Sultan - avatar
+ 1
Mohsin haider Sultan You didn't find Class topic in python? Check OOP lesson in Python Core
20th Jun 2022, 3:53 PM
A͢J
A͢J - avatar
0
Mohsin haider Sultan Thousand of time? Then change your learning process
20th Jun 2022, 3:00 PM
A͢J
A͢J - avatar
0
I am beginner so i can't understand the concept and unfamiliar to keyword of python
20th Jun 2022, 3:11 PM
Mohsin haider Sultan
Mohsin haider Sultan - avatar
0
Either post your attempt or start the lesson your on over again.
20th Jun 2022, 3:15 PM
Slick
Slick - avatar
0
I can't find this type of lession in anywere. I mean google, YouTube etc
20th Jun 2022, 3:18 PM
Mohsin haider Sultan
Mohsin haider Sultan - avatar
0
Class can't be use just list... That is problem.
20th Jun 2022, 4:29 PM
Mohsin haider Sultan
Mohsin haider Sultan - avatar
0
What is this question for? Please state the programing language, the course number. And show your attempt so we can help you.
20th Jun 2022, 5:10 PM
Chris Coder
Chris Coder - avatar
0
sava mon frère
7th Sep 2022, 5:15 PM
georges some
georges some - avatar
- 1
Everything is possible just show your attempts.
20th Jun 2022, 2:55 PM
A͢J
A͢J - avatar
- 1
What's the best way for me to learn python if I don't have enough bits for hearts?
20th Jun 2022, 10:55 PM
ry12 rew
ry12 rew - avatar
- 1
Yes it is ☺️☺️☺️
21st Jun 2022, 7:25 AM
Vaibhav
Vaibhav - avatar
- 1
Mohsin haider Sultan You didn't find Class topic in python? Check OOP lesson in Python Core
21st Jun 2022, 7:01 PM
Emtiaz Bhuiyan
Emtiaz Bhuiyan - avatar
- 3
sava mon frère
20th Jun 2022, 11:08 PM
georges some
georges some - avatar