The answer is d torque because
Answer:
Can't really help you... But you can try emailing support.
What's the rest of the question? Like A - B - C - D?
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:
jspService()
Explanation:
<u></u>
<u>These are the steps in JSP life cycle</u>
1. We have to convert JSP page to Servlet.
2.Then we compile the JSP page which convert it into test.java
3. In test.java ,we load the classes(test.class) in container.
4. Object(instance) is created in container .
5. Then, we initialize the init() method at the time of servlet generation.
6. After the initialization,for the requests we use _jspService() method to serve the incoming requests from JSP.
7. When the work of JSP is completed, we remove it from container by the help of jspDestroy() method.
There is no jspService() method in the JSP life cycle.