Answer:
- jersey_dict = {}
-
- for i in range(5):
- j_num = int(input("Input Jersey's number (0-99): "))
- rating = int(input("Input rating (1 - 9): "))
- jersey_dict[j_num] = rating
-
- sorted_key = []
- for i in jersey_dict.keys():
- sorted_key.append(i)
-
- sorted_key.sort()
- for i in sorted_key:
- print(str(i) + ":" + str(jersey_dict[i]))
Explanation:
Firstly, define an empty dictionary (Line 1).
Next, use a for loop to prompt user to input five Jersey's number and rating and keep the input to the dictionary (Line 3-6). Next, create a list to hold the dictionary keys (Line 8-10). Use build in method, sort to arrange the keys in the list in ascending order (Line 12 ). At last, print the dictionary element by looping over the value in the sorted_key list (Line 14-15).
Answer:
When you shut down your PC, all your open programs close and the PC shuts down your operating system. but In sleep mode, the PC enters a low-power state. The PC's state is kept in memory, but other parts of the PC are shut down and won't use any power.
Explanation:
Answer:
Option C is the correct answer for the above question.
Explanation:
Open-source software is a concept which means that a user can see the software source code and can modify the software for its personal use if it is open-source software.
Linux is also the open-source software and free of cost available in the market. hence the option c is correct while the other is not because--
- Option A states that Linux is only for end users but Linux is for server, client and for the developer.
- Option B states that it is designed for a specific purpose but it is for any type of work.
- Option D states that Linux is for numeric data only but it uses for all types of data.
Answer:
it's D
Explanation: i had this question before and i got it right :)
Punctuality
Explanation:
Jorja is punctual because she is always at the office when she is supposed to be there, she comes early and makes arrangements for her time off.