Answer:
- def show_students(message, sList):
- print(message)
- print(sList)
-
- print("Our students are currently in alphabetical order")
- sList.sort()
- output = ""
- for student in sList:
- output += "-" + student
- print(output)
-
- print("Our students are currently in reverse alphabetical order")
- sList.sort(reverse=True)
- output = ""
- for student in sList:
- output += "-" + student
- print(output)
-
- show_students("Welcome to new semester!", ["Aaron","Bernice", "Cody"])
Explanation:
Firstly we declare a function that will take two inputs, message and student list (Line 1).
In the function, we first print the message and the original input student list (Line 2 - 3). Next, we use sort method to sort the input list and then output the sorted items from the list using a for loop (Line 5-10).
Next, we sort the list again by setting reverse = True and this will sort the list in descending order (Line 13). Again we use the similar way mentioned above to output the sorted items (in descending order) using a for loop (Line 14 -17)
We test the function using a sample student list (Line 18) and we shall get the output:
Welcome to new semester!
['Aaron', 'Bernice', 'Cody']
Our students are currently in alphabetical order
-Aaron-Bernice-Cody
Our students are currently in reverse alphabetical order
-Cody-Bernice-Aaron
Answer:
"
Non-persistent" is the right response.
Explanation:
- A cross-site category of screenplay whereby harmful material would have to include a transaction to have been transmitted to that same web application or user's device is a Non-persistent attack.
- Developers can upload profiles with publicly available information via social media platforms or virtual communication or interaction.
Answer:
The answer to this question is given below in the explanation section.
Explanation:
This question is about to write HTML code for the given sub-questions. In each sub-question different scenario is given. So, the answer to these questions is given below in the order they asked.
1. In this question it is asked to write a code of 5 students' name in a paragraph with a different color that make them unique.
<html>
<body>
<p style="color:red;">Student A</p>
<p style="color:blue;">Student B</p>
<p style="color:black;">Student C</p>
<p style="color:orange;">Student D</p>
<p style="color:green;">Student E</p>
</body>
</html>
2. In it, the below is given code show an ordered list of subjects that you're offering.
<html>
<body>
<h2>An ordered HTML list</h2>
<ol>
<li>Introduction to Computing</li>
<li>Communication Skills</li>
<li>Software Designing</li>
</ol>
</body>
</html>
3. The below-given HTML code shows the unordered list of parts that make up the computer.
<html>
<body>
<h2>An unordered HTML list</h2>
<ul>
<li>CPU</li>
<li>RAM</li>
<li>Motherboard</li>
<li>Mouse</li>
<li>Keyboard</li>
<li>Monitor</li>
</ul>
</body>
</html>
Answer:
The components within the computer can get damage during travel, so he could improve the box protection with foam thingies
Explanation:
Answer:
Ping
Explanation:
If working in an environment that uses Linux and Windows servers and the network using IP protocol, if an application you are using is unable to to connect to a windows server named FileSrv2, you will need to test network connectivity between your workstation and the server by using either the "ping" or "traceroute" command.