+ 2
solve this problem
Given a dictionary with 5 student names and their marks. Write a program that prints the dictionary contents in the ascending order of marks.
7 Antworten
+ 3
Your attempt ?
+ 3
I have seen this question before and I believe it was marked as homework or laziness but if in fact it is a challenge then please post it to this thread
https://www.sololearn.com/Discuss/1270852/?ref=app
and remove your q&a discussion
0
What is input exactly ?
0
We need your attempt to help you as well
0
list=[“John”:89,”skill”:56,”Simon”:77,”Soti”:3]
print()
how order this list by marks in ascending order Laaunos
0
It has to be in phyton? Because I think I can do it in C, I haven't learned phyton yet.
0
Prashant Yadav
You showed a mix between list and dictionary.
I recomment to repeat the following lessons:
Lists
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2431/
Dictionarys
https://www.sololearn.com/learn/Python/2450/
Next, you take a look on dictionary methods.
There are very useful methods, like dict.keys()
dict.values()
dict.items()
You can do this!